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