fixes to limit and bus selection
This commit is contained in:
parent
d6d028ff89
commit
d9d9a0a0e7
@ -66,10 +66,10 @@ async function populateForm (node, type, vmid) {
|
||||
}
|
||||
|
||||
let addDiskBus = document.querySelector("#add-disk #bus");
|
||||
Object.keys(diskConfig[type]).forEach(element => {
|
||||
diskConfig[type].prefixOrder.forEach(element => {
|
||||
addDiskBus.add(new Option(diskConfig[type][element].name, element));
|
||||
});
|
||||
let def = Object.keys(diskConfig[type])[0];
|
||||
let def = diskConfig[type].prefixOrder[0];
|
||||
addDiskBus.value = def;
|
||||
let addDiskDevice = document.querySelector("#add-disk #device");
|
||||
addDiskDevice.max = diskConfig[type][def].limit;
|
||||
|
Loading…
Reference in New Issue
Block a user