Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
iconCls: 'fa fa-terminal',
enableSpice: true,
+ enableXtermjs: true,
nodename: undefined,
me.down('#spicemenu').setDisabled(!enable);
},
+ setEnableXtermJS: function(enable){
+ var me = this;
+
+ me.enableXtermjs = enable;
+ me.down('#xtermjs').setDisabled(!enable);
+ },
+
handler: function() {
var me = this;
PVE.Utils.openDefaultConsoleWindow(me.enableSpice, me.consoleType, me.vmid,
var status;
var qmpstatus;
var spice = false;
+ var xtermjs = false;
if (!success) {
status = qmpstatus = 'unknown';
template = rec.data.value || false;
spice = s.data.get('spice') ? true : false;
+ xtermjs = s.data.get('serial') ? true : false;
}
}
consoleBtn.setEnableSpice(spice);
+ consoleBtn.setEnableXtermJS(xtermjs);
startBtn.setDisabled(!caps.vms['VM.PowerMgmt'] || status === 'running' || template);
shutdownBtn.setDisabled(!caps.vms['VM.PowerMgmt'] || status !== 'running');