From 6ab9aad820a36d7d1163cdb5a19996c5ed7bc2f0 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 4 Dec 2023 16:15:02 -0700 Subject: [PATCH] Include icon --- frigate/timeline.py | 2 +- web/src/components/TimelineSummary.jsx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frigate/timeline.py b/frigate/timeline.py index c34d7a71e..e1158693f 100644 --- a/frigate/timeline.py +++ b/frigate/timeline.py @@ -106,7 +106,7 @@ class TimelineProcessor(threading.Thread): prev_event_data.get("sub_label") is None and event_data.get("sub_label") is not None ): - sub_label = event_data["sub_label"] + sub_label = event_data["sub_label"][0] if sub_label not in ALL_ATTRIBUTE_LABELS: timeline_entry[Timeline.class_type] = "sub_label" diff --git a/web/src/components/TimelineSummary.jsx b/web/src/components/TimelineSummary.jsx index 69f04d217..6a9a88581 100644 --- a/web/src/components/TimelineSummary.jsx +++ b/web/src/components/TimelineSummary.jsx @@ -137,6 +137,13 @@ function getTimelineIcon(timelineItem) { default: return ; } + case 'sub_label': + switch (timelineItem.data.label) { + case 'person': + return ; + case 'car': + return ; + } } }