fix formatting

This commit is contained in:
Arthur Lu 2023-05-17 21:43:03 +00:00
parent 7141c0d23c
commit cf316fbee0
3 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,6 @@ async function init() {
} }
function buildResourceTable(resources, tableid) { function buildResourceTable(resources, tableid) {
if (resources instanceof Object) { if (resources instanceof Object) {
let table = document.querySelector(tableid); let table = document.querySelector(tableid);
let tbody = table.querySelector("tbody"); let tbody = table.querySelector("tbody");

View File

@ -197,7 +197,7 @@ async function handleInstanceAdd() {
d.querySelector("#vmid").max = userInstances.vmid.max; d.querySelector("#vmid").max = userInstances.vmid.max;
} }
export class Instance { class Instance {
constructor() { constructor() {
let shadowRoot = document.createElement("div"); let shadowRoot = document.createElement("div");
shadowRoot.classList.add("w3-row"); shadowRoot.classList.add("w3-row");
@ -307,7 +307,6 @@ export class Instance {
} }
async handlePowerButton() { async handlePowerButton() {
if (!this.actionLock) { if (!this.actionLock) {
let header = `${this.status === "running" ? "Stop" : "Start"} VM ${this.vmid}`; let header = `${this.status === "running" ? "Stop" : "Start"} VM ${this.vmid}`;
let body = `<p>Are you sure you want to ${this.status === "running" ? "stop" : "start"} VM</p><p>${this.vmid}</p>` let body = `<p>Are you sure you want to ${this.status === "running" ? "stop" : "start"} VM</p><p>${this.vmid}</p>`

View File

@ -137,7 +137,6 @@ export async function requestAPI(path, method, body = null) {
} }
async function request(url, content) { async function request(url, content) {
let response = await fetch(url, content); let response = await fetch(url, content);
let data = null; let data = null;
try { try {