mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 10:11:12 +00:00
ui: fix wrong defaultConsole fallback in tree
having spice does not mean it can also have xtermjs, and we get the information in the status call already so give the correct parameters to openDefaultConsoleWindow Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a482a83614
commit
54453c3873
@ -1027,8 +1027,11 @@ Ext.define('PVE.Utils', { utilities: {
|
||||
Ext.Msg.alert('Error', response.htmlStatus);
|
||||
},
|
||||
success: function(response, opts) {
|
||||
var allowSpice = !!response.result.data.spice;
|
||||
PVE.Utils.openDefaultConsoleWindow(allowSpice, 'kvm', vmid, nodename, vmname);
|
||||
var consoles = {
|
||||
spice: !!response.result.data.spice,
|
||||
xtermjs: !!response.result.data.serial,
|
||||
};
|
||||
PVE.Utils.openDefaultConsoleWindow(consoles, 'kvm', vmid, nodename, vmname);
|
||||
}
|
||||
});
|
||||
} else if (record.data.type === 'lxc' && !record.data.template) {
|
||||
|
Loading…
Reference in New Issue
Block a user