From 653e2031d277e1ed4b4196ff2838691fe21762d0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 21 Jul 2020 11:10:40 +0200 Subject: [PATCH] ui: add Console Button Signed-off-by: Dominik Csapak --- www/ServerStatus.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/ServerStatus.js b/www/ServerStatus.js index 51e6c4e3..3752820b 100644 --- a/www/ServerStatus.js +++ b/www/ServerStatus.js @@ -86,7 +86,15 @@ Ext.define('PBS.ServerStatus', { iconCls: 'fa fa-power-off' }); - me.tbar = [ restartBtn, shutdownBtn, '->', { xtype: 'proxmoxRRDTypeSelector' } ]; + var consoleBtn = Ext.create('Proxmox.button.Button', { + text: gettext('Console'), + iconCls: 'fa fa-terminal', + handler: function() { + Proxmox.Utils.openXtermJsViewer('shell', 0, Proxmox.NodeName); + } + }); + + me.tbar = [ consoleBtn, restartBtn, shutdownBtn, '->', { xtype: 'proxmoxRRDTypeSelector' } ]; var rrdstore = Ext.create('Proxmox.data.RRDStore', { rrdurl: "/api2/json/nodes/localhost/rrd",