[pve-devel] [PATCH manager 3/3] gui: add ceph monitor restart button
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 23 11:46:45 CET 2018
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/Monitor.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/www/manager6/ceph/Monitor.js b/www/manager6/ceph/Monitor.js
index 8093ed0a..a3a18a83 100644
--- a/www/manager6/ceph/Monitor.js
+++ b/www/manager6/ceph/Monitor.js
@@ -123,6 +123,15 @@ Ext.define('PVE.node.CephMonList', {
}
});
+ var restart_btn = new Proxmox.button.Button({
+ text: gettext('Restart'),
+ selModel: sm,
+ disabled: true,
+ handler: function(){
+ service_cmd("restart");
+ }
+ });
+
var create_btn = new Ext.Button({
text: gettext('Create'),
handler: function(){
@@ -164,7 +173,7 @@ Ext.define('PVE.node.CephMonList', {
Ext.apply(me, {
store: store,
selModel: sm,
- tbar: [ start_btn, stop_btn, create_btn, remove_btn ],
+ tbar: [ start_btn, stop_btn, restart_btn, '-', create_btn, remove_btn ],
columns: [
{
header: gettext('Name'),
--
2.11.0
More information about the pve-devel
mailing list