fix bugs with boot order interface
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user