We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
push-update
1 parent f001eb5 commit c926042Copy full SHA for c926042
lib/nerves_hub_web/components/device_page/details.ex
@@ -546,6 +546,12 @@ defmodule NervesHubWeb.Components.DevicePage.Details do
546
end
547
548
549
+ def handle_event("push-update", %{"uuid" => uuid}, socket) when uuid == "" do
550
+ socket
551
+ |> send_toast(:error, "Please select a firmware version to send to the device.")
552
+ |> noreply()
553
+ end
554
+
555
def handle_event("push-update", %{"uuid" => uuid}, socket) do
556
authorized!(:"device:push-update", socket.assigns.org_user)
557
0 commit comments