mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59:33 +00:00
fix doubleclick on vm with spice console
allowSpice needs to be a real boolean, because of a '=== true' check to open a spice console if allowed, so make it one here this fixes the issue that a doubleclick on a tree item only opened the novnc console even if spice is the default and the vm is spice enabled Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d9005f4532
commit
ab9f0fe1b1
@ -880,7 +880,7 @@ Ext.define('PVE.Utils', { utilities: {
|
|||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
Ext.Msg.alert('Error', response.htmlStatus);
|
||||||
},
|
},
|
||||||
success: function(response, opts) {
|
success: function(response, opts) {
|
||||||
var allowSpice = response.result.data.spice;
|
var allowSpice = !!response.result.data.spice;
|
||||||
PVE.Utils.openDefaultConsoleWindow(allowSpice, 'kvm', vmid, nodename, vmname);
|
PVE.Utils.openDefaultConsoleWindow(allowSpice, 'kvm', vmid, nodename, vmname);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user