remove user vlan tag info,
update client with new api route
This commit is contained in:
parent
1359ebcc87
commit
a679e7a2d9
@ -29,7 +29,6 @@
|
|||||||
<p id="username">Username:</p>
|
<p id="username">Username:</p>
|
||||||
<p id="pool">Pool:</p>
|
<p id="pool">Pool:</p>
|
||||||
<p id="vmid">VMID Range:</p>
|
<p id="vmid">VMID Range:</p>
|
||||||
<p id="vlan">VLAN Tag:</p>
|
|
||||||
<p id="nodes">Nodes:</p>
|
<p id="nodes">Nodes:</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w3-card w3-padding">
|
<div class="w3-card w3-padding">
|
||||||
|
@ -26,12 +26,11 @@ async function init() {
|
|||||||
goToPage("login.html");
|
goToPage("login.html");
|
||||||
}
|
}
|
||||||
let resources = await requestAPI("/user/resources");
|
let resources = await requestAPI("/user/resources");
|
||||||
let instances = await requestAPI("/user/config/instances");
|
let instances = await requestAPI("/user/config/cluster");
|
||||||
let nodes = await requestAPI("/user/config/nodes");
|
let nodes = await requestAPI("/user/config/nodes");
|
||||||
document.querySelector("#username").innerText = `Username: ${getCookie("username")}`;
|
document.querySelector("#username").innerText = `Username: ${getCookie("username")}`;
|
||||||
document.querySelector("#pool").innerText = `Pool: ${instances.pool}`;
|
document.querySelector("#pool").innerText = `Pool: ${instances.pool}`;
|
||||||
document.querySelector("#vmid").innerText = `VMID Range: ${instances.vmid.min} - ${instances.vmid.max}`;
|
document.querySelector("#vmid").innerText = `VMID Range: ${instances.vmid.min} - ${instances.vmid.max}`;
|
||||||
document.querySelector("#vlan").innerText = `VLAN Tag: ${instances.vlan}`;
|
|
||||||
document.querySelector("#nodes").innerText = `Nodes: ${nodes.toString()}`;
|
document.querySelector("#nodes").innerText = `Nodes: ${nodes.toString()}`;
|
||||||
buildResourceTable(resources, "#resource-table");
|
buildResourceTable(resources, "#resource-table");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user