add power button html and css
This commit is contained in:
parent
9f4642ec81
commit
b4a15c4118
@ -45,8 +45,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" id="power-btn"></button>
|
||||
<button type="button" id="configure-btn">Config</button>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user