hide instance actions if the node is offline
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
019ee1b140
commit
dd165d58a5
@ -141,6 +141,11 @@ class Instance extends HTMLElement {
|
|||||||
goToPage("config.html", {node: this.node, type: this.type, vmid: this.vmid});
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user