From c4dbe7910a03dc11c891f883d97f713250dd086b Mon Sep 17 00:00:00 2001 From: ianmuchyri Date: Mon, 18 Mar 2024 16:20:19 +0300 Subject: [PATCH] fix linter error Signed-off-by: ianmuchyri --- .../charts/stackedlinechartmodal.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/web/templates/charts/stackedlinechartmodal.html b/ui/web/templates/charts/stackedlinechartmodal.html index 62b6e3df..f0eb324e 100644 --- a/ui/web/templates/charts/stackedlinechartmodal.html +++ b/ui/web/templates/charts/stackedlinechartmodal.html @@ -284,12 +284,12 @@
Data Source
break } } - + chartData["channels"] = channels; chartData["things"] = things; chartData["seriesNames"]= names; chartData["colors"]=colors; - + if (chartData.aggregationType != "") { const updateInterval = form.querySelector("#update-interval"); if (chartData.updateInterval === "") { @@ -316,19 +316,19 @@
Data Source
invalidTimeInput.classList.remove("is-invalid"); invalidTimeInput.classList.add("was-validated"); } - + var widgetID = "stackedLineChart-" + Date.now(); - + chartData["Type"] = "stackedLineChart"; addWidget(chartData, widgetID); metadataBuffer[widgetID] = chartData; - + form.reset(); form.classList.remove("was-validated"); bootstrap.Modal.getInstance(document.getElementById("stackedLineChartModal")).hide(); - + }); - + document.querySelectorAll(".close-stackedLineChart-button").forEach((element) => { const form = document.getElementById("create-stackedLineChart-form"); element.addEventListener("click", function () { @@ -338,7 +338,7 @@
Data Source
form.classList.remove("was-validated"); }) }); - + function addRow() { const uuidPattern = "{{ .UUIDPattern }}"; const table = document @@ -366,7 +366,7 @@
Data Source
`; } - + function removeRow(button) { const row = button.parentNode.parentNode; row.parentNode.removeChild(row);