From 0fe9200429628569462c6236cf7685e11103f9e5 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 9 Aug 2023 21:52:55 +0000 Subject: [PATCH] add boot order card in config --- config.html | 3 +++ scripts/config.js | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/config.html b/config.html index aaeac02..79cd4d7 100644 --- a/config.html +++ b/config.html @@ -53,6 +53,9 @@ Add New PCIe Device +
+ Boot Order +
diff --git a/scripts/config.js b/scripts/config.js index bb7b28b..eaaa3ed 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -30,6 +30,7 @@ async function init () { populateDisk(); populateNetworks(); populateDevices(); + populateBoot(); document.querySelector("#exit").addEventListener("click", handleFormExit); } @@ -616,6 +617,12 @@ async function populateDevices () { } } +async function populateBoot () { + if (type === "qemu") { + document.querySelector("#boot-card").classList.remove("none"); + } +} + function addDeviceLine (fieldset, prefix, deviceID, deviceDetails, deviceName) { const field = document.querySelector(`#${fieldset}`);