fix bugs with boot order interface

This commit is contained in:
2025-09-25 00:27:00 +00:00
parent 3f723394c4
commit fc42de2c49
2 changed files with 2 additions and 2 deletions

View File

@@ -449,7 +449,7 @@ async function refreshBoot () {
if (boot.status !== 200) { if (boot.status !== 200) {
alert("Error fetching instance boot order."); alert("Error fetching instance boot order.");
} }
else { else if (type === "qemu") {
boot = boot.data; boot = boot.data;
const order = document.querySelector("#boot-order"); const order = document.querySelector("#boot-order");
order.setHTMLUnsafe(boot); order.setHTMLUnsafe(boot);

View File

@@ -48,7 +48,7 @@ class DraggableContainer extends HTMLElement {
get value () { get value () {
const value = []; const value = [];
this.content.childNodes.forEach((element) => { this.content.querySelectorAll(".draggable-item").forEach((element) => {
if (element.dataset.value) { if (element.dataset.value) {
value.push(element.dataset.value); value.push(element.dataset.value);
} }