mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-30 00:51:14 +03:00
frontend
This commit is contained in:
parent
0195f301a8
commit
03cb07ab68
@ -72,6 +72,25 @@ const detect: SectionConfigOverrides = {
|
|||||||
"max_disappeared",
|
"max_disappeared",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
replay: {
|
||||||
|
restartRequired: [],
|
||||||
|
fieldOrder: ["width", "height", "fps"],
|
||||||
|
fieldGroups: {
|
||||||
|
resolution: ["width", "height", "fps"],
|
||||||
|
},
|
||||||
|
hiddenFields: [
|
||||||
|
"enabled",
|
||||||
|
"enabled_in_config",
|
||||||
|
"min_initialized",
|
||||||
|
"max_disappeared",
|
||||||
|
"annotation_offset",
|
||||||
|
"stationary",
|
||||||
|
"interval",
|
||||||
|
"threshold",
|
||||||
|
"max_frames",
|
||||||
|
],
|
||||||
|
advancedFields: [],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default detect;
|
export default detect;
|
||||||
|
|||||||
@ -1288,7 +1288,12 @@ export function ConfigSection({
|
|||||||
<CollapsibleTrigger asChild>
|
<CollapsibleTrigger asChild>
|
||||||
<div className="flex cursor-pointer items-center justify-between">
|
<div className="flex cursor-pointer items-center justify-between">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Heading as="h4">{title}</Heading>
|
<Heading
|
||||||
|
as="h4"
|
||||||
|
className={level === "replay" ? "text-base" : undefined}
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</Heading>
|
||||||
{showOverrideIndicator &&
|
{showOverrideIndicator &&
|
||||||
effectiveLevel === "camera" &&
|
effectiveLevel === "camera" &&
|
||||||
(profileOverridesSection || isOverridden) &&
|
(profileOverridesSection || isOverridden) &&
|
||||||
|
|||||||
@ -354,6 +354,18 @@ export default function Replay() {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
|
<ConfigSectionTemplate
|
||||||
|
sectionKey="detect"
|
||||||
|
level="replay"
|
||||||
|
cameraName={status.replay_camera ?? undefined}
|
||||||
|
skipSave
|
||||||
|
noStickyButtons
|
||||||
|
requiresRestart={false}
|
||||||
|
collapsible
|
||||||
|
defaultCollapsed={false}
|
||||||
|
showTitle
|
||||||
|
showOverrideIndicator={false}
|
||||||
|
/>
|
||||||
<ConfigSectionTemplate
|
<ConfigSectionTemplate
|
||||||
sectionKey="motion"
|
sectionKey="motion"
|
||||||
level="replay"
|
level="replay"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user