浏览代码

Add ability to restart

ElMoribond 3 年之前
父节点
当前提交
955d9e6ec2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      web/src/AppBar.jsx

+ 3 - 3
web/src/AppBar.jsx

@@ -49,7 +49,7 @@ export default function AppBar() {
   const handleRestart = useCallback(() => {
     setShowMoreMenu(false);
     setShowDialog(true);
-  });
+  }, [setShowDialog]);
 
   return (
     <Fragment>
@@ -70,8 +70,8 @@ export default function AppBar() {
           title="Restart Frigate"
           text="Are you sure ?"
           actions={[
-            { text: "Yes", color: "red", onClick: handleClickRestartDialog },
-            { text: "Cancel", onClick: handleDismissRestartDialog },
+            { text: 'Yes' color: 'red', onClick: handleClickRestartDialog },
+            { text: 'Cancel', onClick: handleDismissRestartDialog },
           ]}
         />
       ) : null},