From 36d93017f99e3f04ca3008440526096f940ed456 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 15:16:02 -0800 Subject: [PATCH] fix storageSelect and sizeInput populating Signed-off-by: Arthur Lu --- scripts/config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index f67b3ad..fb0ff67 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -137,14 +137,16 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti } }); storageSelect.value = storage; + field.append(storageSelect); let sizeInput = document.createElement("input"); sizeInput.type = "number"; sizeInput.min = 0; - deviceInput.value = size; + sizeInput.value = size; if (!diskConfig[type][busPrefix].resizable) { - deviceInput.disabled = true; + sizeInput.disabled = true; } + field.append(sizeInput); } function getOrderedUsed(entry){