From bee34d4569c1bbb02b3a7d3b86fe2ceaf8b05955 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 14:25:31 -0800 Subject: [PATCH] remove name field Signed-off-by: Arthur Lu --- config.html | 5 +---- scripts/config.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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") {