[pve-devel] [PATCH manager 2/2] gui: ceph: hide outdated osd line if possible
Dominik Csapak
d.csapak at proxmox.com
Wed May 29 15:33:09 CEST 2019
when no osd is outdated, hide the line with 'outdated osts' in the
dashboard
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/StatusDetail.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/www/manager6/ceph/StatusDetail.js b/www/manager6/ceph/StatusDetail.js
index 275d776d..477f4207 100644
--- a/www/manager6/ceph/StatusDetail.js
+++ b/www/manager6/ceph/StatusDetail.js
@@ -26,7 +26,8 @@ Ext.define('PVE.ceph.StatusDetail', {
upin: 0,
upout: 0,
downin: 0,
- downout: 0
+ downout: 0,
+ oldosds: []
},
tpl: [
'<h3>' + 'OSDs' + '</h3>',
@@ -58,7 +59,7 @@ Ext.define('PVE.ceph.StatusDetail', {
gettext('Total'),
': {total}',
'</div><br />',
- '<tpl if="oldosds">',
+ '<tpl if="oldosds.length > 0">',
'<i class="fa fa-refresh warning"></i> ' + gettext('Outdated OSDs') + "<br>",
'<div class="osds">',
'<tpl for="oldosds">',
--
2.11.0
More information about the pve-devel
mailing list