mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-27 14:19:01 +03:00
Improve restart from UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user