fix instance status issue

This commit is contained in:
Arthur Lu 2022-12-11 20:02:39 -08:00
parent 02188e7240
commit 095c6a66bc

View File

@ -47,7 +47,7 @@ class Node extends HTMLElement {
let lxcDiv = document.createElement("div");
for (let i = 0; i < lxc.length; i++) {
let instanceParagraph = document.createElement("p");
instanceParagraph.innerText = `CT | ${lxc[i].vmid} | ${lxc[i].name} | ${qemu[i].status}`;
instanceParagraph.innerText = `CT | ${lxc[i].vmid} | ${lxc[i].name} | ${lxc[i].status}`;
instanceParagraph.style.color = lxc[i].status == "running" ? "#00ff00" : "#ff0000";
lxcDiv.append(instanceParagraph);
}