fix storage options populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
32a3c50f97
commit
f7a11046e0
@ -131,7 +131,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
|
|||||||
}
|
}
|
||||||
|
|
||||||
let storageSelect = document.createElement("select");
|
let storageSelect = document.createElement("select");
|
||||||
storageOptions.forEach((element) => {
|
storageOptions.data.forEach((element) => {
|
||||||
if (element.content.includes(diskConfig[type].storageContent)) { // check if the storage contains rootdir or images content
|
if (element.content.includes(diskConfig[type].storageContent)) { // check if the storage contains rootdir or images content
|
||||||
storageSelect.add(new Option(element.storage));
|
storageSelect.add(new Option(element.storage));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user