From d3df822886bb410ab8fac6304a9ab141a5a80969 Mon Sep 17 00:00:00 2001 From: ianmuchyri Date: Sun, 17 Mar 2024 13:39:38 +0300 Subject: [PATCH] fix close and dismiss button to work the same Signed-off-by: ianmuchyri --- ui/web/static/js/charts.js | 2 +- ui/web/templates/charts/linechartmodal.html | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/web/static/js/charts.js b/ui/web/static/js/charts.js index 105f37ae..9e3e1611 100644 --- a/ui/web/static/js/charts.js +++ b/ui/web/static/js/charts.js @@ -922,7 +922,7 @@ class TimeSeriesLineChart extends Echart { } } xAxisArray.push(xAxis); - // Remove the previous element in the array; + // Remove the previous element in the array xAxisArray.shift(); yAxisArray.push(yAxis); } else { diff --git a/ui/web/templates/charts/linechartmodal.html b/ui/web/templates/charts/linechartmodal.html index b0dc7be7..af110ce6 100644 --- a/ui/web/templates/charts/linechartmodal.html +++ b/ui/web/templates/charts/linechartmodal.html @@ -17,7 +17,7 @@ @@ -235,8 +235,7 @@
Data Source