chore: increase reboot delay to 7 seconds

This commit is contained in:
Adam Shiervani 2025-11-19 00:58:11 +01:00
parent 892e5f4195
commit ac79724448
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import LoadingSpinner from "../components/LoadingSpinner";
import { useDeviceUiNavigation } from "../hooks/useAppNavigation"; import { useDeviceUiNavigation } from "../hooks/useAppNavigation";
// Time to wait after initiating reboot before redirecting to home // 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() { export default function SettingsGeneralRebootRoute() {
const navigate = useNavigate(); const navigate = useNavigate();
@ -19,7 +19,7 @@ export default function SettingsGeneralRebootRoute() {
const [isRebooting, setIsRebooting] = useState(false); const [isRebooting, setIsRebooting] = useState(false);
const { navigateTo } = useDeviceUiNavigation(); const { navigateTo } = useDeviceUiNavigation();
const { setFailsafeMode } = useFailsafeModeStore(); const { setFailsafeMode } = useFailsafeModeStore();
const onClose = useCallback(async () => { const onClose = useCallback(async () => {
navigate(".."); // back to the devices.$id.settings page navigate(".."); // back to the devices.$id.settings page
// Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation. // Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.