remove console

This commit is contained in:
Arthur Lu 2022-12-18 16:56:02 -08:00
parent 015855d38f
commit 3fd9f3bb3f

View File

@ -64,10 +64,7 @@ class Instance extends HTMLElement {
powerButton.src = data.status === "running" ? "images/actions/stop.svg" : "images/actions/start.svg"; powerButton.src = data.status === "running" ? "images/actions/stop.svg" : "images/actions/start.svg";
powerButton.alt = data.status === "running" ? "shutdown instance" : "start instance"; powerButton.alt = data.status === "running" ? "shutdown instance" : "start instance";
powerButton.addEventListener("click", async () => { powerButton.addEventListener("click", async () => {
if (this.actionLock) { if (!this.actionLock) {
console.log("already doing an action");
}
else {
this.actionLock = true; this.actionLock = true;
let targetAction = this.status === "running" ? "shutdown" : "start"; let targetAction = this.status === "running" ? "shutdown" : "start";
let targetStatus = this.status === "running" ? "stopped" : "running"; let targetStatus = this.status === "running" ? "stopped" : "running";