mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Show sub label name in hover
This commit is contained in:
parent
16f2c3eeb1
commit
738bff8e45
@ -184,7 +184,13 @@ export default function LivePlayer({
|
|||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
</div>
|
</div>
|
||||||
<TooltipContent className="capitalize">
|
<TooltipContent className="capitalize">
|
||||||
{[...new Set([...(objects || []).map(({ label }) => label)])]
|
{[
|
||||||
|
...new Set([
|
||||||
|
...(objects || []).map(({ label, sub_label }) =>
|
||||||
|
label.endsWith("verified") ? sub_label : label,
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
]
|
||||||
.filter(
|
.filter(
|
||||||
(label) =>
|
(label) =>
|
||||||
label !== undefined && !label.includes("-verified"),
|
label !== undefined && !label.includes("-verified"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user