]> git.proxmox.com Git - pve-manager.git/commitdiff
fix doubleclick on vm with spice console
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 30 Jul 2018 09:37:32 +0000 (11:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Jul 2018 09:53:33 +0000 (11:53 +0200)
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>
www/manager6/Utils.js

index 21153ece82b7bfdf3d76e6d6cd59b94ca712cca9..c062b5912614ed50b624e7cea59f316ae522ad8b 100644 (file)
@@ -880,7 +880,7 @@ Ext.define('PVE.Utils', { utilities: {
                    Ext.Msg.alert('Error', response.htmlStatus);
                },
                success: function(response, opts) {
-                   var allowSpice = response.result.data.spice;
+                   var allowSpice = !!response.result.data.spice;
                    PVE.Utils.openDefaultConsoleWindow(allowSpice, 'kvm', vmid, nodename, vmname);
                }
            });