fix disk image select id assignment

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 11:43:50 -08:00
parent bd92558d66
commit c5224b71dc

View File

@ -172,7 +172,7 @@ async function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed
diskImageSelect.add(new Option(element.volid.replace(`${storage}:iso/`, ""), element.volid));
});
diskImageSelect.value = diskDataParsed.filename;
pathInput.id = `${busPrefix}_${device}_img`;
diskImageSelect.id = `${busPrefix}_${device}_img`;
diskImageSelect.style.gridColumn = "auto / span 2";
field.append(diskImageSelect);
}