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