disable size unit select if resizable is false
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
3e03bc5ede
commit
bbfdfa0f98
@ -154,6 +154,9 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
|
||||
sizeUnitSelect.add(new Option(element));
|
||||
});
|
||||
sizeUnitSelect.value = sizeUnit;
|
||||
if (!diskConfig[type][busPrefix].resizable) {
|
||||
sizeUnitSelect.disabled = true;
|
||||
}
|
||||
field.append(sizeUnitSelect);
|
||||
|
||||
let deleteDiv = document.createElement("div");
|
||||
|
Loading…
Reference in New Issue
Block a user