mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +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["model"]["colormap"] = config_obj.model.colormap
 | 
			
		||||
    config["model"]["all_attributes"] = config_obj.model.all_attributes
 | 
			
		||||
 | 
			
		||||
    # use merged labelamp
 | 
			
		||||
    for detector_config in config["detectors"].values():
 | 
			
		||||
 | 
			
		||||
@ -61,7 +61,9 @@ export default function SearchFilterGroup({
 | 
			
		||||
      }
 | 
			
		||||
      const cameraConfig = config.cameras[camera];
 | 
			
		||||
      cameraConfig.objects.track.forEach((label) => {
 | 
			
		||||
        if (!config.model.all_attributes.includes(label)) {
 | 
			
		||||
          labels.add(label);
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      if (cameraConfig.audio.enabled_in_config) {
 | 
			
		||||
 | 
			
		||||
@ -343,6 +343,7 @@ export interface FrigateConfig {
 | 
			
		||||
    width: number;
 | 
			
		||||
    colormap: { [key: string]: [number, number, number] };
 | 
			
		||||
    attributes_map: { [key: string]: [string] };
 | 
			
		||||
    all_attributes: [string];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  motion: Record<string, unknown> | null;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user