add frontend for frigate+ submission

This commit is contained in:
Blake Blackshear
2022-04-10 08:09:41 -05:00
parent e724fe3da6
commit cef77fba01
4 changed files with 135 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import AutoAwesomeIcon from './icons/AutoAwesome';
import LightModeIcon from './icons/LightMode';
import DarkModeIcon from './icons/DarkMode';
import FrigateRestartIcon from './icons/FrigateRestart';
import Dialog from './components/Dialog';
import Prompt from './components/Prompt';
import { useDarkMode } from './context';
import { useCallback, useRef, useState } from 'preact/hooks';
import { useRestart } from './api/mqtt';
@@ -65,7 +65,7 @@ export default function AppBar() {
</Menu>
) : null}
{showDialog ? (
<Dialog
<Prompt
onDismiss={handleDismissRestartDialog}
title="Restart Frigate"
text="Are you sure?"
@@ -76,7 +76,7 @@ export default function AppBar() {
/>
) : null}
{showDialogWait ? (
<Dialog
<Prompt
title="Restart in progress"
text="Please wait a few seconds for the restart to complete before reloading the page."
/>