[pve-devel] [PATCH manager 15/15] gui: add datacenter ceph option
Dominik Csapak
d.csapak at proxmox.com
Mon May 27 14:14:06 CEST 2019
links to the cluster wide dashboard
also link the datacenter dashboard to this instead of a random node
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/Config.js | 6 ++++++
www/manager6/dc/Health.js | 9 +--------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/www/manager6/dc/Config.js b/www/manager6/dc/Config.js
index e574f5db..52cd106f 100644
--- a/www/manager6/dc/Config.js
+++ b/www/manager6/dc/Config.js
@@ -34,6 +34,12 @@ Ext.define('PVE.dc.Config', {
itemId: 'cluster'
},
{
+ title: 'Ceph',
+ itemId: 'ceph',
+ iconCls: 'fa fa-ceph',
+ xtype: 'pveNodeCephStatus'
+ },
+ {
xtype: 'pveDcOptionView',
title: gettext('Options'),
iconCls: 'fa fa-gear',
diff --git a/www/manager6/dc/Health.js b/www/manager6/dc/Health.js
index 29e616d5..18ea5afa 100644
--- a/www/manager6/dc/Health.js
+++ b/www/manager6/dc/Health.js
@@ -141,15 +141,8 @@ Ext.define('PVE.dc.Health', {
listeners: {
element: 'el',
click: function() {
- var me = this.component.up('pveDcHealth');
var sp = Ext.state.Manager.getProvider();
-
- // preselect the ceph tab
- sp.set('nodetab', {value:'ceph'});
-
- // select the node that had the successfull api call
- var id = me.nodeList[me.nodeIndex].id;
- Ext.ComponentQuery.query('pveResourceTree')[0].selectById(id);
+ sp.set('dctab', {value:'ceph'}, true);
}
}
}
--
2.11.0
More information about the pve-devel
mailing list