[pbs-devel] [PATCH proxmox-backup 5/5] ui: add Console Button
Dominik Csapak
d.csapak at proxmox.com
Tue Jul 21 11:10:40 CEST 2020
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/ServerStatus.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/www/ServerStatus.js b/www/ServerStatus.js
index 51e6c4e..3752820 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",
--
2.20.1
More information about the pbs-devel
mailing list