From 2375263a9af7692cf8c0709fc82c3583cf78e4f5 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 21 Dec 2022 15:08:21 -0800 Subject: [PATCH] add better label text for rootfs --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index c70625d..05f6138 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -47,7 +47,7 @@ async function populateForm (node, type, vmid) { rootfs = JSON.parse(rootfs); let sizeNum = +(rootfs.size.replaceAll("G", "").replaceAll("M", "")); let sizeUnit = rootfs.size.includes("G") ? "GiB" : "MiB"; - addFormLine("resources", "rootfs", {type: "number", value: sizeUnit === "GiB" ? sizeNum.toFixed(3) : (sizeNum / 1024).toFixed(3), min: 0.016}, "GiB"); + addFormLine("resources", "Root FS", {type: "number", value: sizeUnit === "GiB" ? sizeNum.toFixed(3) : (sizeNum / 1024).toFixed(3), min: 0.016}, "GiB"); } }