remove unit from size
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
359bb8a7f3
commit
dfba5cdd5a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user