fix instance status issue
This commit is contained in:
parent
11ac75b0c5
commit
a7c1baa35c
2
node.js
2
node.js
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user