hide instance actions if the node is offline

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 12:45:16 -08:00
parent 019ee1b140
commit dd165d58a5

View File

@ -141,6 +141,11 @@ class Instance extends HTMLElement {
goToPage("config.html", {node: this.node, type: this.type, vmid: this.vmid});
}
})
if (data.node.status !== "online") {
powerButton.classList.add("hidden");
configButton.classList.add("hidden");
}
}
}