forked from Github/frigate
add frontend for frigate+ submission
This commit is contained in:
@@ -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."
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user