From 0bfe716ecb43a8946e76efc140314af45c7938a2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 10:59:06 -0800 Subject: [PATCH] populate diskImageSelect with options Signed-off-by: Arthur Lu --- scripts/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 3f00fe1..9ec8d26 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -167,8 +167,9 @@ async function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed let diskImageSelect = document.createElement("select"); let diskImageOptions = await request(`/nodes/${node}/storage/${storage}/content?content=iso`); diskImageOptions.data.forEach((element) => { - diskImageSelect.add(new Option(element.replace(`${storage}:`), element)); + diskImageSelect.add(new Option(element.volid.replace(`${storage}:`), element.volid)); }); + diskImageSelect.value = diskDataParsed.filename; field.append(diskImageSelect); let blank = document.createElement("div");