mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Include icon
This commit is contained in:
parent
a62aff09b6
commit
6ab9aad820
@ -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"
|
||||
|
||||
@ -137,6 +137,13 @@ function getTimelineIcon(timelineItem) {
|
||||
default:
|
||||
return <DeliveryTruckIcon className="w-8" />;
|
||||
}
|
||||
case 'sub_label':
|
||||
switch (timelineItem.data.label) {
|
||||
case 'person':
|
||||
return <FaceIcon className="w-8" />;
|
||||
case 'car':
|
||||
return <LicensePlateIcon className="w-8" />;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user