Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri committed Mar 18, 2024
1 parent 6fdb945 commit c4dbe79
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ui/web/templates/charts/stackedlinechartmodal.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ <h5>Data Source</h5>
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 === "") {
Expand All @@ -316,19 +316,19 @@ <h5>Data Source</h5>
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 () {
Expand All @@ -338,7 +338,7 @@ <h5>Data Source</h5>
form.classList.remove("was-validated");
})
});

function addRow() {
const uuidPattern = "{{ .UUIDPattern }}";
const table = document
Expand Down Expand Up @@ -366,7 +366,7 @@ <h5>Data Source</h5>
</button>
</td>`;
}

function removeRow(button) {
const row = button.parentNode.parentNode;
row.parentNode.removeChild(row);
Expand Down

0 comments on commit c4dbe79

Please sign in to comment.