[pve-devel] [PATCH manager 13/15] gui: ceph: add Services panel
Dominik Csapak
d.csapak at proxmox.com
Mon May 27 14:14:04 CEST 2019
to show the mon/mgr/mds services
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/Status.js | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index c426b88f..b8b98dd8 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -129,6 +129,26 @@ Ext.define('PVE.node.CephStatus', {
title: gettext('Status')
},
{
+ title: gettext('Services'),
+ xtype: 'pveCephServices',
+ itemId: 'services',
+ plugins: 'responsive',
+ layout: {
+ type: 'hbox',
+ align: 'stretch'
+ },
+ responsiveConfig: {
+ 'width < 1900': {
+ columnWidth: 1,
+ minHeight: 200
+ },
+ 'width >= 1900': {
+ columnWidth: 0.5,
+ minHeight: 200
+ }
+ }
+ },
+ {
xtype: 'panel',
title: gettext('Performance'),
columnWidth: 1,
@@ -229,6 +249,9 @@ Ext.define('PVE.node.CephStatus', {
// add errors to gridstore
me.down('#warnings').getStore().loadRawData(me.generateCheckData(rec.data.health || {}), false);
+ // update services
+ me.getComponent('services').updateAll(me.metadata || {}, rec.data);
+
// update detailstatus panel
me.getComponent('statusdetail').updateAll(me.metadata || {}, rec.data);
@@ -331,13 +354,18 @@ Ext.define('PVE.node.CephStatus', {
var rec = records[0];
me.metadata = rec.data;
+ // update services
+ me.getComponent('services').updateAll(rec.data, me.status || {});
+
// update detailstatus panel
me.getComponent('statusdetail').updateAll(rec.data, me.status || {});
}, me);
me.on('destroy', me.store.stopUpdate);
+ me.on('destroy', me.metadatastore.stopUpdate);
me.store.startUpdate();
+ me.metadatastore.startUpdate();
}
});
--
2.11.0
More information about the pve-devel
mailing list