From 408a586240203b4d4bd9e88e503fefec3aa746c8 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Wed, 14 Jul 2021 17:43:29 +0200 Subject: [PATCH] Improve restart from UI --- web/src/components/DialogRestart.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/DialogRestart.jsx b/web/src/components/DialogRestart.jsx index ac320df3e..506e7ebce 100644 --- a/web/src/components/DialogRestart.jsx +++ b/web/src/components/DialogRestart.jsx @@ -9,8 +9,9 @@ export default function DialogRestart({ show, setShow }) { useEffect(() => { if (detectRestarted != null && Number.isInteger(detectRestarted)) { - if (!detectRestarted) + if (!detectRestarted) { setDialogTitle('Server-initiated startup'); + } setShow(false); } }, [detectRestarted]); // eslint-disable-line react-hooks/exhaustive-deps