mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 23:06:13 +02:00
Optionally show tracked object paths in debug view (#19025)
This commit is contained in:
committed by
Blake Blackshear
parent
3609b41217
commit
22478df4d6
@@ -158,6 +158,16 @@ function DebugSettings({ handleSetOption, options }: DebugSettingsProps) {
|
||||
/>
|
||||
<Label htmlFor="regions">{t("debug.regions")}</Label>
|
||||
</div>
|
||||
<div className="flex items-center space-x-2">
|
||||
<Switch
|
||||
id="paths"
|
||||
checked={options["paths"]}
|
||||
onCheckedChange={(isChecked) => {
|
||||
handleSetOption("paths", isChecked);
|
||||
}}
|
||||
/>
|
||||
<Label htmlFor="paths">{t("debug.paths")}</Label>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -93,6 +93,12 @@ export default function ObjectSettingsView({
|
||||
description: t("debug.regions.desc"),
|
||||
info: <Trans ns="views/settings">debug.regions.tips</Trans>,
|
||||
},
|
||||
{
|
||||
param: "paths",
|
||||
title: t("debug.paths.title"),
|
||||
description: t("debug.paths.desc"),
|
||||
info: <Trans ns="views/settings">debug.paths.tips</Trans>,
|
||||
},
|
||||
];
|
||||
|
||||
const [options, setOptions, optionsLoaded] = usePersistence<Options>(
|
||||
|
||||
Reference in New Issue
Block a user