fix bug preventing opening instance console

This commit is contained in:
Arthur Lu 2025-03-20 19:01:50 +00:00
parent 6e4f2505a2
commit 75330e8a59

@ -185,7 +185,7 @@ class InstanceCard extends HTMLElement {
handleConsoleButton () {
if (!this.actionLock && this.status === "running") {
const data = { console: `${this.type === "qemu" ? "kvm" : "lxc"}`, vmid: this.vmid, vmname: this.name, node: this.node, resize: "off", cmd: "" };
const data = { console: `${this.type === "qemu" ? "kvm" : "lxc"}`, vmid: this.vmid, vmname: this.name, node: this.node.name, resize: "off", cmd: "" };
data[`${this.type === "qemu" ? "novnc" : "xtermjs"}`] = 1;
goToURL(window.PVE, data, true);
}