mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 14:05:28 +03:00
fetch schema
This commit is contained in:
parent
4cfad07378
commit
9e1c7df4de
@ -55,6 +55,7 @@ import { isDesktop, isMobile } from "react-device-detect";
|
|||||||
import Logo from "@/components/Logo";
|
import Logo from "@/components/Logo";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import { useDocDomain } from "@/hooks/use-doc-domain";
|
import { useDocDomain } from "@/hooks/use-doc-domain";
|
||||||
|
import { useConfigSchema } from "@/hooks/use-config-schema";
|
||||||
import DebugDrawingLayer from "@/components/overlay/DebugDrawingLayer";
|
import DebugDrawingLayer from "@/components/overlay/DebugDrawingLayer";
|
||||||
import { IoMdArrowRoundBack } from "react-icons/io";
|
import { IoMdArrowRoundBack } from "react-icons/io";
|
||||||
|
|
||||||
@ -132,6 +133,7 @@ export default function Replay() {
|
|||||||
});
|
});
|
||||||
const { payload: replayJob } =
|
const { payload: replayJob } =
|
||||||
useJobStatus<DebugReplayJobResults>("debug_replay");
|
useJobStatus<DebugReplayJobResults>("debug_replay");
|
||||||
|
const configSchema = useConfigSchema();
|
||||||
const [isInitializing, setIsInitializing] = useState(true);
|
const [isInitializing, setIsInitializing] = useState(true);
|
||||||
|
|
||||||
// Refresh status immediately on mount to avoid showing "no session" briefly
|
// Refresh status immediately on mount to avoid showing "no session" briefly
|
||||||
@ -684,32 +686,38 @@ export default function Replay() {
|
|||||||
{t("page.configurationDesc")}
|
{t("page.configurationDesc")}
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div className="space-y-6">
|
{configSchema == null ? (
|
||||||
<ConfigSectionTemplate
|
<div className="flex h-40 items-center justify-center">
|
||||||
sectionKey="motion"
|
<ActivityIndicator />
|
||||||
level="replay"
|
</div>
|
||||||
cameraName={status.replay_camera ?? undefined}
|
) : (
|
||||||
skipSave
|
<div className="space-y-6">
|
||||||
noStickyButtons
|
<ConfigSectionTemplate
|
||||||
requiresRestart={false}
|
sectionKey="motion"
|
||||||
collapsible
|
level="replay"
|
||||||
defaultCollapsed={false}
|
cameraName={status.replay_camera ?? undefined}
|
||||||
showTitle
|
skipSave
|
||||||
showOverrideIndicator={false}
|
noStickyButtons
|
||||||
/>
|
requiresRestart={false}
|
||||||
<ConfigSectionTemplate
|
collapsible
|
||||||
sectionKey="objects"
|
defaultCollapsed={false}
|
||||||
level="replay"
|
showTitle
|
||||||
cameraName={status.replay_camera ?? undefined}
|
showOverrideIndicator={false}
|
||||||
skipSave
|
/>
|
||||||
noStickyButtons
|
<ConfigSectionTemplate
|
||||||
requiresRestart={false}
|
sectionKey="objects"
|
||||||
collapsible
|
level="replay"
|
||||||
defaultCollapsed={false}
|
cameraName={status.replay_camera ?? undefined}
|
||||||
showTitle
|
skipSave
|
||||||
showOverrideIndicator={false}
|
noStickyButtons
|
||||||
/>
|
requiresRestart={false}
|
||||||
</div>
|
collapsible
|
||||||
|
defaultCollapsed={false}
|
||||||
|
showTitle
|
||||||
|
showOverrideIndicator={false}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user