mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Add ability to restart
This commit is contained in:
parent
fe2e32c84f
commit
955d9e6ec2
@ -49,7 +49,7 @@ export default function AppBar() {
|
|||||||
const handleRestart = useCallback(() => {
|
const handleRestart = useCallback(() => {
|
||||||
setShowMoreMenu(false);
|
setShowMoreMenu(false);
|
||||||
setShowDialog(true);
|
setShowDialog(true);
|
||||||
});
|
}, [setShowDialog]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
@ -70,8 +70,8 @@ export default function AppBar() {
|
|||||||
title="Restart Frigate"
|
title="Restart Frigate"
|
||||||
text="Are you sure ?"
|
text="Are you sure ?"
|
||||||
actions={[
|
actions={[
|
||||||
{ text: "Yes", color: "red", onClick: handleClickRestartDialog },
|
{ text: 'Yes' color: 'red', onClick: handleClickRestartDialog },
|
||||||
{ text: "Cancel", onClick: handleDismissRestartDialog },
|
{ text: 'Cancel', onClick: handleDismissRestartDialog },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
) : null},
|
) : null},
|
||||||
|
Loading…
Reference in New Issue
Block a user