From a114fe2477e718e4beec6ea35f2bb306aad05d39 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 8 Jan 2023 21:32:22 -0800 Subject: [PATCH] fix memory populating bug --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 8155971..7498c5c 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -27,7 +27,7 @@ async function populateForm (node, type, vmid) { let name = type === "qemu" ? "name" : "hostname"; addMetaLine("name", "Name", {type: "text", value: 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, min: 16, step: 1}, "MiB"); // 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") { addResourceLine("resources", "images/resources/swap.svg", "Swap", {type: "number", value: config.data.swap, min: 0, step: 1}, "GiB"); // TODO add max from quota API addDiskLine("disks", "rootfs", "images/resources/disk.svg", "Root FS", config.data.rootfs);