diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsx index e19941653..417423cca 100644 --- a/web/src/routes/Events.jsx +++ b/web/src/routes/Events.jsx @@ -46,7 +46,7 @@ const clipDuration = (start_time, end_time) => { duration = formatDuration(intervalToDuration({ start, end })); } return duration; -} +}; export default function Events({ path, ...props }) { const apiHost = useApiHost(); @@ -100,7 +100,7 @@ export default function Events({ path, ...props }) { const { data: config } = useSWR('config'); - const { data: allSubLabels } = useSWR('sub_labels') + const { data: allSubLabels } = useSWR('sub_labels'); const filterValues = useMemo( () => ({ @@ -296,21 +296,20 @@ export default function Events({ path, ...props }) { ))} - { - filterValues.sub_labels.length > 0 && ( - - )} + {filterValues.sub_labels.length > 0 && ( + + )}
Confirm deletion of saved event.

-
@@ -465,12 +472,15 @@ export default function Events({ path, ...props }) {
- {event.sub_label ? `${event.label}: ${event.sub_label}` : event.label} ( - {(event.top_score * 100).toFixed(0)}%) + {event.sub_label + ? `${event.label.replaceAll('_', ' ')}: ${event.sub_label.replaceAll('_', ' ')}` + : event.label.replaceAll('_', ' ')}{' '} + ({(event.top_score * 100).toFixed(0)}%)
{new Date(event.start_time * 1000).toLocaleDateString()}{' '} - {new Date(event.start_time * 1000).toLocaleTimeString()} ({clipDuration(event.start_time, event.end_time)}) + {new Date(event.start_time * 1000).toLocaleTimeString()} ( + {clipDuration(event.start_time, event.end_time)})
@@ -499,7 +509,11 @@ export default function Events({ path, ...props }) { )}
- onDelete(e, event.id, event.retain_indefinitely)} /> + onDelete(e, event.id, event.retain_indefinitely)} + />
-
- - +
+ +
- {((eventDetailType == 'clip') && event.has_clip) ? ( + {eventDetailType == 'clip' && event.has_clip ? ( { }} + onReady={() => {}} /> ) : null} - {((eventDetailType == 'image') || !event.has_clip) ? ( + {eventDetailType == 'image' || !event.has_clip ? (
{Object.entries(storage).map(([name, camera]) => (
-
{name}
+
+ {name.replaceAll('_', ' ')} +
diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index d5b7ce7d5..7da83102e 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -211,7 +211,7 @@ export default function System() {
{cameraNames.map((camera) => (
-
+
{camera.replaceAll('_', ' ')}