mirror of
https://github.com/zaphar/Heracles.git
synced 2025-07-23 20:49:50 -04:00
ux: start out with all the labels selected
This commit is contained in:
parent
a010112f39
commit
20c8eadbd1
@ -181,6 +181,7 @@ class TimeseriesGraph extends HTMLElement {
|
|||||||
for (var opt of this.#filterLabels[key]) {
|
for (var opt of this.#filterLabels[key]) {
|
||||||
const optElement = document.createElement("option");
|
const optElement = document.createElement("option");
|
||||||
optElement.setAttribute("value", opt);
|
optElement.setAttribute("value", opt);
|
||||||
|
optElement.setAttribute("selected", true);
|
||||||
optElement.innerText = opt;
|
optElement.innerText = opt;
|
||||||
select.appendChild(optElement);
|
select.appendChild(optElement);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user