fix bug preventing opening instance console
This commit is contained in:
@@ -185,7 +185,7 @@ class InstanceCard extends HTMLElement {
|
|||||||
|
|
||||||
handleConsoleButton () {
|
handleConsoleButton () {
|
||||||
if (!this.actionLock && this.status === "running") {
|
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;
|
data[`${this.type === "qemu" ? "novnc" : "xtermjs"}`] = 1;
|
||||||
goToURL(window.PVE, data, true);
|
goToURL(window.PVE, data, true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user