fix instance icon assignment

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 12:34:22 -08:00
parent 1c0faf2a71
commit d957fb35ef

View File

@ -47,7 +47,7 @@ class Instance extends HTMLElement {
} }
let nodeImg = this.shadowElement.querySelector("#node-status"); let nodeImg = this.shadowElement.querySelector("#node-status");
if (data.status === "undefined") { if (data.status === "unknown") {
data.status = "stopped"; data.status = "stopped";
} }
nodeImg.src = `images/nodes/${data.node.status}.svg`; nodeImg.src = `images/nodes/${data.node.status}.svg`;