From 6b55cf3b7e1c6a74912567799ac49c7e3fcb4baf Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Thu, 20 Nov 2025 18:11:09 +0100 Subject: [PATCH] fix: enhance reboot state management with health check and redirect options --- ui/src/routes/devices.$id.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index c3f2c9cc1..dbf413957 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -697,7 +697,14 @@ export default function KvmIdRoute() { if (resp.method === "willReboot") { const postRebootAction = resp.params as unknown as PostRebootAction; console.debug("Setting reboot state", postRebootAction); - setRebootState({ isRebooting: true, postRebootAction }); + + setRebootState({ + isRebooting: true, + postRebootAction: { + healthCheck: postRebootAction?.healthCheck || `${window.location.origin}/device/status`, + redirectTo: postRebootAction?.redirectTo || window.location.href, + } + }); navigateTo("/"); }