remove unit from size
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
2ae003b98c
commit
abe70d0b72
@ -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