* Better scaling for frigate+ dialog and thumbnails

* Always show live objects chip

* Handle sub labels

* Send sub label correctly

* Formatting

* Undo vite

* Update web/src/utils/iconUtil.tsx
This commit is contained in:
Nicolas Mowen
2024-04-30 18:35:23 -06:00
committed by GitHub
parent 90bdb07463
commit 297444375c
6 changed files with 26 additions and 17 deletions

View File

@@ -740,11 +740,11 @@ class CameraState:
if not obj.false_positive:
label = object_type
if (
obj.obj_data.get("sub_label")
and obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS
):
label = obj.obj_data["sub_label"]
if obj.obj_data.get("sub_label"):
if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS:
label = obj.obj_data["sub_label"][0]
else:
label = f"{object_type}-verified"
camera_activity["objects"].append(
{"id": obj.obj_data["id"], "label": label, "stationary": not active}