mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-05 00:15:51 +01:00
Don't show sub labels in main label filter list (#16168)
This commit is contained in:
parent
5943fc1895
commit
99d27c154e
@ -153,6 +153,7 @@ def config(request: Request):
|
|||||||
|
|
||||||
config["plus"] = {"enabled": request.app.frigate_config.plus_api.is_active()}
|
config["plus"] = {"enabled": request.app.frigate_config.plus_api.is_active()}
|
||||||
config["model"]["colormap"] = config_obj.model.colormap
|
config["model"]["colormap"] = config_obj.model.colormap
|
||||||
|
config["model"]["all_attributes"] = config_obj.model.all_attributes
|
||||||
|
|
||||||
# use merged labelamp
|
# use merged labelamp
|
||||||
for detector_config in config["detectors"].values():
|
for detector_config in config["detectors"].values():
|
||||||
|
@ -61,7 +61,9 @@ export default function SearchFilterGroup({
|
|||||||
}
|
}
|
||||||
const cameraConfig = config.cameras[camera];
|
const cameraConfig = config.cameras[camera];
|
||||||
cameraConfig.objects.track.forEach((label) => {
|
cameraConfig.objects.track.forEach((label) => {
|
||||||
labels.add(label);
|
if (!config.model.all_attributes.includes(label)) {
|
||||||
|
labels.add(label);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cameraConfig.audio.enabled_in_config) {
|
if (cameraConfig.audio.enabled_in_config) {
|
||||||
|
@ -343,6 +343,7 @@ export interface FrigateConfig {
|
|||||||
width: number;
|
width: number;
|
||||||
colormap: { [key: string]: [number, number, number] };
|
colormap: { [key: string]: [number, number, number] };
|
||||||
attributes_map: { [key: string]: [string] };
|
attributes_map: { [key: string]: [string] };
|
||||||
|
all_attributes: [string];
|
||||||
};
|
};
|
||||||
|
|
||||||
motion: Record<string, unknown> | null;
|
motion: Record<string, unknown> | null;
|
||||||
|
Loading…
Reference in New Issue
Block a user