Include icon

This commit is contained in:
Nick Mowen 2023-12-04 16:15:02 -07:00
parent a62aff09b6
commit 6ab9aad820
2 changed files with 8 additions and 1 deletions

View File

@ -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"

View File

@ -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" />;
}
}
}