diff --git a/index.html b/index.html index 6c635bf..2f58f07 100644 --- a/index.html +++ b/index.html @@ -45,8 +45,9 @@
-
- +
+ +
diff --git a/scripts/elements.js b/scripts/elements.js index bbed608..71fce14 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -49,6 +49,9 @@ class Instance extends HTMLElement { let resourceDISK = this.shadowElement.querySelector("#resource-disk"); resourceDISK.innerText = (data.maxdisk / 1073741824).toFixed(3); + + let powerButton = this.shadowElement.querySelector("#power-btn"); + powerButton.innerText = data.status === "running" ? "Shutdown" : "Start" } }