From 6c004f7fc7602a25e458115bfdf18bd76351015a Mon Sep 17 00:00:00 2001 From: kalytka Date: Wed, 6 Mar 2024 14:21:46 +0200 Subject: [PATCH 1/3] Fix parsing unicode into symbol for charts legend --- .../widget/lib/legend.component.html | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html index 155ae07df9..d3bfac2b13 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html @@ -32,14 +32,14 @@ - {{ legendKey.dataKey.label }} - {{ legendData.data[legendKey.dataIndex].min }} - {{ legendData.data[legendKey.dataIndex].max }} - {{ legendData.data[legendKey.dataIndex].avg }} - {{ legendData.data[legendKey.dataIndex].total }} - {{ legendData.data[legendKey.dataIndex].latest }} + + + + + @@ -47,40 +47,35 @@ - {{ legendKey.dataKey.label }} {{ 'legend.min' | translate }} - - {{ legendData.data[legendKey.dataIndex].min }} + {{ 'legend.max' | translate }} - - {{ legendData.data[legendKey.dataIndex].max }} + {{ 'legend.avg' | translate }} - - {{ legendData.data[legendKey.dataIndex].avg }} + {{ 'legend.total' | translate }} - - {{ legendData.data[legendKey.dataIndex].total }} + {{ 'legend.latest' | translate }} - - {{ legendData.data[legendKey.dataIndex].latest }} + From f9ff021821527d79d591ca3f726889646c95d696 Mon Sep 17 00:00:00 2001 From: kalytka Date: Wed, 6 Mar 2024 14:25:47 +0200 Subject: [PATCH 2/3] Refactoring --- .../components/widget/lib/legend.component.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html index d3bfac2b13..25b0c4aa2a 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html @@ -55,28 +55,23 @@ {{ 'legend.min' | translate }} - - + {{ 'legend.max' | translate }} - - + {{ 'legend.avg' | translate }} - - + {{ 'legend.total' | translate }} - - + {{ 'legend.latest' | translate }} - - + From e246c317001f974e0163d8f01171fbb1cf5cd8cf Mon Sep 17 00:00:00 2001 From: kalytka Date: Mon, 11 Mar 2024 16:40:26 +0200 Subject: [PATCH 3/3] Added safe html --- .../widget/lib/legend.component.html | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html index 25b0c4aa2a..2e7e4b786c 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/legend.component.html @@ -32,14 +32,19 @@ - - - - - + + + + + @@ -47,7 +52,7 @@ @@ -55,23 +60,28 @@ {{ 'legend.min' | translate }} - + {{ 'legend.max' | translate }} - + {{ 'legend.avg' | translate }} - + {{ 'legend.total' | translate }} - + {{ 'legend.latest' | translate }} - +