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:
Dominik Csapak 2018-07-30 11:37:32 +02:00 committed by Thomas Lamprecht
parent d9005f4532
commit ab9f0fe1b1

View File

@ -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);
} }
}); });