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>
|
</TooltipTrigger>
|
||||||
</div>
|
</div>
|
||||||
<TooltipContent className="capitalize">
|
<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)
|
.filter((item) => item !== undefined)
|
||||||
.join(", ")
|
.join(", ")
|
||||||
.replaceAll("-verified", "")}
|
.replaceAll("-verified", "")}
|
||||||
|
|||||||
@ -15,6 +15,7 @@ export type ReviewData = {
|
|||||||
audio: string[];
|
audio: string[];
|
||||||
detections: string[];
|
detections: string[];
|
||||||
objects: string[];
|
objects: string[];
|
||||||
|
sub_labels?: string[];
|
||||||
significant_motion_areas: number[];
|
significant_motion_areas: number[];
|
||||||
zones: string[];
|
zones: string[];
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user