From 9f866647e76ce9ca39a0916b73936b88d8ba8c72 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 8 Jan 2023 20:30:09 -0800 Subject: [PATCH] populate id parameter in addDiskLine --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 02c98e0..399871f 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -30,12 +30,12 @@ async function populateForm (node, type, vmid) { addResourceLine("resources", "images/resources/ram.svg", "Memory", {type: "number", value: config.data, 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", "images/resources/disk.svg", "Root FS", config.data.rootfs); + addDiskLine("disks", "rootfs", "images/resources/disk.svg", "Root FS", config.data.rootfs); } else { // qemu let i = 0; while(Object.hasOwn(config.data, `sata${i}`)){ - addDiskLine("disks", "images/resources/disk.svg", `SATA ${i}`, config.data[`sata${i}`]); + addDiskLine("disks", `sata${i}`, "images/resources/disk.svg", `SATA ${i}`, config.data[`sata${i}`]); i++; } }