From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 5/5] ui: add Console Button
Date: Tue, 21 Jul 2020 11:10:40 +0200 [thread overview]
Message-ID: <20200721091040.7632-6-d.csapak@proxmox.com> (raw)
In-Reply-To: <20200721091040.7632-1-d.csapak@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@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
next prev parent reply other threads:[~2020-07-21 9:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 9:10 [pbs-devel] [PATCH proxmox-backup 0/5] implement web console Dominik Csapak
2020-07-21 9:10 ` [pbs-devel] [PATCH proxmox-backup 1/5] server/config: add mechanism to update template Dominik Csapak
2020-07-21 9:10 ` [pbs-devel] [PATCH proxmox-backup 2/5] api2/access: implement term ticket Dominik Csapak
2020-07-21 9:10 ` [pbs-devel] [PATCH proxmox-backup 3/5] api2/nodes: add termproxy and vncwebsocket api calls Dominik Csapak
2020-07-21 9:10 ` [pbs-devel] [PATCH proxmox-backup 4/5] server/rest: add console to index Dominik Csapak
2020-07-21 9:10 ` Dominik Csapak [this message]
2020-07-23 11:24 ` [pbs-devel] applied-series: [PATCH proxmox-backup 0/5] implement web console Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200721091040.7632-6-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox