From ac797244488c9177d07482ad0002581e7b561f11 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Wed, 19 Nov 2025 00:58:11 +0100 Subject: [PATCH] chore: increase reboot delay to 7 seconds --- ui/src/routes/devices.$id.settings.general.reboot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.general.reboot.tsx b/ui/src/routes/devices.$id.settings.general.reboot.tsx index b8c32b51..ec7e7e84 100644 --- a/ui/src/routes/devices.$id.settings.general.reboot.tsx +++ b/ui/src/routes/devices.$id.settings.general.reboot.tsx @@ -11,7 +11,7 @@ import LoadingSpinner from "../components/LoadingSpinner"; import { useDeviceUiNavigation } from "../hooks/useAppNavigation"; // Time to wait after initiating reboot before redirecting to home -const REBOOT_REDIRECT_DELAY_MS = 5000; +const REBOOT_REDIRECT_DELAY_MS = 7000; export default function SettingsGeneralRebootRoute() { const navigate = useNavigate(); @@ -19,7 +19,7 @@ export default function SettingsGeneralRebootRoute() { const [isRebooting, setIsRebooting] = useState(false); const { navigateTo } = useDeviceUiNavigation(); const { setFailsafeMode } = useFailsafeModeStore(); - + const onClose = useCallback(async () => { navigate(".."); // back to the devices.$id.settings page // Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.