fix prefix in disk population

This commit is contained in:
Arthur Lu 2023-01-10 17:11:00 -08:00
parent 5e11295390
commit b3f76107ec

View File

@ -60,7 +60,7 @@ async function populateForm (node, type, vmid) {
});
let ordered_keys = Object.keys(entry.used).sort((a,b) => {parseInt(a) - parseInt(b)}); // ordered integer list
ordered_keys.forEach(element => {
addDiskLine("disks", `${prefix}${element}`, entry.used[element].includes("media=cdrom") ? "images/resources/disk.svg" : "images/resources/drive.svg", `${entry} ${element}`, entry.used[element]);
addDiskLine("disks", `${prefix}${element}`, entry.used[element].includes("media=cdrom") ? "images/resources/disk.svg" : "images/resources/drive.svg", `${prefix} ${element}`, entry.used[element]);
});
}