diff --git a/config.html b/config.html index 6e6d7eb..d2e4e23 100644 --- a/config.html +++ b/config.html @@ -9,12 +9,9 @@ +

-
- Name -
-
Resources
diff --git a/scripts/config.js b/scripts/config.js index dc9dc03..37ea1cd 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -48,7 +48,7 @@ async function populateResources () { let config = await request(`/nodes/${node}/${type}/${vmid}/config`); let name = type === "qemu" ? "name" : "hostname"; - addMetaLine("name", "Name", {type: "text", value: config.data[name]}); + document.querySelector("#name").innerText = config.data[name]; addResourceLine("resources", "images/resources/cpu.svg", "Cores", {type: "number", value: config.data.cores, min: 1, max: 8192}, "Threads"); // TODO add max from quota API addResourceLine("resources", "images/resources/ram.svg", "Memory", {type: "number", value: config.data.memory, min: 16, step: 1}, "MiB"); // TODO add max from quota API if (type === "lxc") {