mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
WebUI: Show label & sub labels values next to the score (#7121)
* Refactor event label and sub-label score display in Events.jsx to include the event label and sub-label percentage
* Revert "Refactor event label and sub-label score display in Events.jsx to include the event label and sub-label percentage"
This reverts commit 87c23adf1e
.
* Refactor event label and sub label score display in Events component
This commit is contained in:
parent
b909ff4ecb
commit
6d34f2229b
@ -630,10 +630,10 @@ export default function Events({ path, ...props }) {
|
|||||||
<Score className="w-5 h-5 mr-2 inline" />
|
<Score className="w-5 h-5 mr-2 inline" />
|
||||||
{(event?.data?.top_score || event.top_score || 0) == 0
|
{(event?.data?.top_score || event.top_score || 0) == 0
|
||||||
? null
|
? null
|
||||||
: `Label: ${((event?.data?.top_score || event.top_score) * 100).toFixed(0)}%`}
|
: `${event.label}: ${((event?.data?.top_score || event.top_score) * 100).toFixed(0)}%`}
|
||||||
{(event?.data?.sub_label_score || 0) == 0
|
{(event?.data?.sub_label_score || 0) == 0
|
||||||
? null
|
? null
|
||||||
: `, Sub Label: ${(event?.data?.sub_label_score * 100).toFixed(0)}%`}
|
: `, ${event.sub_label}: ${(event?.data?.sub_label_score * 100).toFixed(0)}%`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden sm:flex flex-col justify-end mr-2">
|
<div class="hidden sm:flex flex-col justify-end mr-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user