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) {
if (resources instanceof Object) {
let table = document.querySelector(tableid);
let tbody = table.querySelector("tbody");

View File

@ -197,7 +197,7 @@ async function handleInstanceAdd() {
d.querySelector("#vmid").max = userInstances.vmid.max;
}
export class Instance {
class Instance {
constructor() {
let shadowRoot = document.createElement("div");
shadowRoot.classList.add("w3-row");
@ -307,7 +307,6 @@ export class Instance {
}
async handlePowerButton() {
if (!this.actionLock) {
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>`

View File

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