mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Improve restart from UI
This commit is contained in:
parent
bc2a6c8296
commit
408a586240
@ -9,8 +9,9 @@ export default function DialogRestart({ show, setShow }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (detectRestarted != null && Number.isInteger(detectRestarted)) {
|
if (detectRestarted != null && Number.isInteger(detectRestarted)) {
|
||||||
if (!detectRestarted)
|
if (!detectRestarted) {
|
||||||
setDialogTitle('Server-initiated startup');
|
setDialogTitle('Server-initiated startup');
|
||||||
|
}
|
||||||
setShow(false);
|
setShow(false);
|
||||||
}
|
}
|
||||||
}, [detectRestarted]); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [detectRestarted]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user