Avoid metrics being entirely empty
This commit is contained in:
parent
6754b48e7d
commit
d116950a93
2 changed files with 6 additions and 2 deletions
|
|
@ -95,7 +95,11 @@ export class Metrics {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.#div.textContent = ""; // Remove children
|
this.#div.textContent = ""; // Remove children
|
||||||
|
if (folder.children.size == 0) {
|
||||||
|
this.#div.append("There aren't yet any metrics");
|
||||||
|
} else {
|
||||||
this.#div.append(folder.childrenToHtmlElements());
|
this.#div.append(folder.childrenToHtmlElements());
|
||||||
|
}
|
||||||
|
|
||||||
const inputs = this.#div.querySelectorAll<HTMLInputElement>("input");
|
const inputs = this.#div.querySelectorAll<HTMLInputElement>("input");
|
||||||
for (const input of inputs) {
|
for (const input of inputs) {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<div class="graph-container">
|
<div class="graph-container">
|
||||||
<div id="plot"></div>
|
<div id="plot"></div>
|
||||||
<div id="metrics" class="metrics-list"></div>
|
<div id="metrics" class="metrics-list">Loading metrics...</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue