remove unit from size

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-16 15:27:41 -08:00
parent 359bb8a7f3
commit dfba5cdd5a

View File

@ -142,7 +142,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
let sizeInput = document.createElement("input"); let sizeInput = document.createElement("input");
sizeInput.type = "number"; sizeInput.type = "number";
sizeInput.min = 0; sizeInput.min = 0;
sizeInput.value = size; sizeInput.value = size.replace("G", "");
if (!diskConfig[type][busPrefix].resizable) { if (!diskConfig[type][busPrefix].resizable) {
sizeInput.disabled = true; sizeInput.disabled = true;
} }