remove user vlan tag info,

update client with new api route
This commit is contained in:
Arthur Lu 2023-06-29 02:08:52 +00:00
parent 1359ebcc87
commit a679e7a2d9
2 changed files with 1 additions and 3 deletions

View File

@ -29,7 +29,6 @@
<p id="username">Username:</p>
<p id="pool">Pool:</p>
<p id="vmid">VMID Range:</p>
<p id="vlan">VLAN Tag:</p>
<p id="nodes">Nodes:</p>
</div>
<div class="w3-card w3-padding">

View File

@ -26,12 +26,11 @@ async function init() {
goToPage("login.html");
}
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");
document.querySelector("#username").innerText = `Username: ${getCookie("username")}`;
document.querySelector("#pool").innerText = `Pool: ${instances.pool}`;
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()}`;
buildResourceTable(resources, "#resource-table");
}