diff --git a/ui/src/components/FailSafeModeOverlay.tsx b/ui/src/components/FailSafeModeOverlay.tsx index eadc5d9db..e85dabee7 100644 --- a/ui/src/components/FailSafeModeOverlay.tsx +++ b/ui/src/components/FailSafeModeOverlay.tsx @@ -146,7 +146,7 @@ Please attach the recovery logs file that was downloaded to your computer: }; const handleDowngrade = () => { - navigateTo(`/settings/general/update?app=${DOWNGRADE_VERSION}`); + navigateTo(`/settings/general/update?custom_app_version=${DOWNGRADE_VERSION}`); }; return ( diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index 1cc28a1b0..c3f2c9cc1 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -615,7 +615,7 @@ export default function KvmIdRoute() { }); }, 10000); - const { setNetworkState } = useNetworkStateStore(); + const { setNetworkState } = useNetworkStateStore(); const { setHdmiState } = useVideoStore(); const { keyboardLedState, setKeyboardLedState, @@ -815,6 +815,10 @@ export default function KvmIdRoute() { return ; } + if (isFailsafeMode && failsafeReason) { + return ; + } + const hasConnectionFailed = connectionFailed || ["failed", "closed"].includes(peerConnectionState ?? ""); @@ -839,7 +843,7 @@ export default function KvmIdRoute() { } return null; - }, [location.pathname, rebootState?.isRebooting, rebootState?.postRebootAction, connectionFailed, peerConnectionState, peerConnection, setupPeerConnection, loadingMessage]); + }, [location.pathname, rebootState?.isRebooting, rebootState?.postRebootAction, isFailsafeMode, failsafeReason, connectionFailed, peerConnectionState, peerConnection, setupPeerConnection, loadingMessage]); return ( @@ -887,9 +891,7 @@ export default function KvmIdRoute() { className="animate-slideUpFade pointer-events-none absolute inset-0 flex items-center justify-center p-4" >
- {isFailsafeMode && failsafeReason ? ( - - ) : !!ConnectionStatusElement && ConnectionStatusElement} + {!!ConnectionStatusElement && ConnectionStatusElement}