remove user vlan tag info,
update client with new api route
This commit is contained in:
parent
426e27812f
commit
87c1c50355
@ -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">
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user