remove console
This commit is contained in:
parent
015855d38f
commit
3fd9f3bb3f
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user