fix instance icon assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
1c0faf2a71
commit
d957fb35ef
@ -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`;
|
||||||
|
Loading…
Reference in New Issue
Block a user