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 977f363934
commit cd2d93ad34

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.add(new Option(element.volid.replace(`${storage}:iso/`, ""), element.volid));
}); });
diskImageSelect.value = diskDataParsed.filename; diskImageSelect.value = diskDataParsed.filename;
pathInput.id = `${busPrefix}_${device}_img`; diskImageSelect.id = `${busPrefix}_${device}_img`;
diskImageSelect.style.gridColumn = "auto / span 2"; diskImageSelect.style.gridColumn = "auto / span 2";
field.append(diskImageSelect); field.append(diskImageSelect);
} }