hide instance actions if the node is offline
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
23f3153294
commit
2fe9e847c9
@ -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