add boot order card in config
This commit is contained in:
parent
6cbac6b4fc
commit
0fe9200429
@ -53,6 +53,9 @@
|
||||
<img id="device-add" src="images/actions/device/add.svg" class="clickable" alt="Add New PCIe Device" title="Add New PCIe Device">
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="w3-card w3-padding none" id="boot-card">
|
||||
<legend>Boot Order</legend>
|
||||
</fieldset>
|
||||
<div class="w3-container w3-center" id="form-actions">
|
||||
<button class="w3-button w3-margin" id="exit" type="button">EXIT</button>
|
||||
</div>
|
||||
|
@ -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}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user