mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Include sub labels in tooltip
This commit is contained in:
parent
bf809b3280
commit
dcdbf24b39
@ -252,7 +252,13 @@ export default function PreviewThumbnailPlayer({
|
||||
</TooltipTrigger>
|
||||
</div>
|
||||
<TooltipContent className="capitalize">
|
||||
{[...(review.data.objects || []), ...(review.data.audio || [])]
|
||||
{[
|
||||
...new Set(
|
||||
...(review.data.objects || []),
|
||||
...(review.data.sub_labels || []),
|
||||
...(review.data.audio || []),
|
||||
),
|
||||
]
|
||||
.filter((item) => item !== undefined)
|
||||
.join(", ")
|
||||
.replaceAll("-verified", "")}
|
||||
|
||||
@ -15,6 +15,7 @@ export type ReviewData = {
|
||||
audio: string[];
|
||||
detections: string[];
|
||||
objects: string[];
|
||||
sub_labels?: string[];
|
||||
significant_motion_areas: number[];
|
||||
zones: string[];
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user