From 6d34f2229bafb325be99d3e7831612df3935b4b9 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Fri, 14 Jul 2023 14:25:53 +0300 Subject: [PATCH] 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 87c23adf1e72640ebe750699b1ac88347ca97229. * Refactor event label and sub label score display in Events component --- web/src/routes/Events.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsx index 0bfd0eb06..841081f79 100644 --- a/web/src/routes/Events.jsx +++ b/web/src/routes/Events.jsx @@ -630,10 +630,10 @@ export default function Events({ path, ...props }) { {(event?.data?.top_score || event.top_score || 0) == 0 ? 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 ? null - : `, Sub Label: ${(event?.data?.sub_label_score * 100).toFixed(0)}%`} + : `, ${event.sub_label}: ${(event?.data?.sub_label_score * 100).toFixed(0)}%`}