proxmox-backup/www/panel/XtermJsConsole.js
Dominik Csapak 8e12e86f0b ui: add shell panel under administration
some users prefer an inline console
we still have the pop-out console in 'Administration'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-11-04 18:16:49 +01:00

26 lines
449 B
JavaScript

Ext.define('PBS.panel.XtermJsConsole', {
extend: 'Ext.panel.Panel',
alias: 'widget.pbsXtermJsConsole',
layout: 'fit',
items: [
{
xtype: 'uxiframe',
itemId: 'iframe',
},
],
listeners: {
'afterrender': function() {
let me = this;
let params = {
console: 'shell',
node: 'localhost',
xtermjs: 1,
};
me.getComponent('iframe').load('/?' + Ext.Object.toQueryString(params));
},
},
});