From f24ca5136e0c1eae3a099cdf1359493c3dd2428d Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 14 Oct 2025 15:56:32 +0200 Subject: [PATCH] refactor: clean up reboot route --- ui/src/routes/devices.$id.settings.general.reboot.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.general.reboot.tsx b/ui/src/routes/devices.$id.settings.general.reboot.tsx index db0e0530..c3347f14 100644 --- a/ui/src/routes/devices.$id.settings.general.reboot.tsx +++ b/ui/src/routes/devices.$id.settings.general.reboot.tsx @@ -9,13 +9,9 @@ export default function SettingsGeneralRebootRoute() { const { send } = useJsonRpc(); const onConfirmUpdate = useCallback(() => { - // This is where we send the RPC to the golang binary - send("reboot", {force: true}); + send("reboot", { force: true}); }, [send]); - { - /* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */ - } return navigate("..")} onConfirmUpdate={onConfirmUpdate} />; }