Improve restart from UI

This commit is contained in:
ElMoribond
2021-07-14 17:43:29 +02:00
committed by GitHub
parent bc2a6c8296
commit 408a586240
+2 -1
View File
@@ -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