Browse Source

Add ability to restart

ElMoribond 3 years ago
parent
commit
955d9e6ec2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/src/AppBar.jsx

+ 3 - 3
web/src/AppBar.jsx

@@ -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: "Cancel", onClick: handleDismissRestartDialog },
+            { text: 'Yes' color: 'red', onClick: handleClickRestartDialog },
+            { text: 'Cancel', onClick: handleDismissRestartDialog },
           ]}
           ]}
         />
         />
       ) : null},
       ) : null},