fix formatting
This commit is contained in:
parent
7141c0d23c
commit
cf316fbee0
@ -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");
|
||||
|
@ -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>`
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user