remove console

This commit is contained in:
Arthur Lu 2022-12-18 16:56:02 -08:00
parent bb10726eef
commit a24467ee39

View File

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