From 28a4dc94cb6b93d7be26f73e144c31c341a92db9 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 15:48:20 -0800 Subject: [PATCH] add required params to addDiskLine Signed-off-by: Arthur Lu --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index fdc3452..46a288d 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -57,7 +57,7 @@ async function populateResources () { 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 let rootfs = parseDisk(config.data.rootfs); - addDiskLine("disks", "mp", "Root FS", null, rootfs.storage, storageOptions, rootfs.size); + addDiskLine("disks", "mp", "Root FS", null, rootfs.storage, storageOptions, rootfs.size, rootfs.sizeUnit, rootfs.sizeUnitAllowed); } for(let i = 0; i < diskConfig[type].prefixOrder.length; i++){ @@ -72,7 +72,7 @@ async function populateResources () { let ordered_keys = getOrderedUsed(entry); ordered_keys.forEach(element => { let disk = parseDisk(entry.used[element]); - addDiskLine("disks", prefix, busName, element, disk.storage, storageOptions, disk.size); + addDiskLine("disks", prefix, busName, element, disk.storage, storageOptions, disk.size, disk.sizeUnit, disk.sizeUnitAllowed); }); } }