[pve-devel] [PATCH manager 2/4] gui: ceph: add HEALTH_UPGRADE state
Dominik Csapak
d.csapak at proxmox.com
Fri Jul 19 10:17:01 CEST 2019
to have 2 different states for
* packages are outdated
* packages are up to date but the service runs with the old version
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/Utils.js | 4 ++++
www/manager6/ceph/Services.js | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 946b8709..9bb0251c 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -83,6 +83,9 @@ Ext.define('PVE.Utils', { utilities: {
case 'good':
icon = 'good fa-check';
break;
+ case 'upgrade':
+ icon = 'warning fa-upload';
+ break;
case 'old':
icon = 'warning fa-refresh';
break;
@@ -154,6 +157,7 @@ Ext.define('PVE.Utils', { utilities: {
map_ceph_health: {
'HEALTH_OK':'good',
+ 'HEALTH_UPGRADE':'upgrade',
'HEALTH_OLD':'old',
'HEALTH_WARN':'warning',
'HEALTH_ERR':'critical'
diff --git a/www/manager6/ceph/Services.js b/www/manager6/ceph/Services.js
index 3d10a7ed..f53fc5a2 100644
--- a/www/manager6/ceph/Services.js
+++ b/www/manager6/ceph/Services.js
@@ -43,13 +43,15 @@ Ext.define('PVE.ceph.Services', {
'HEALTH_UNKNOWN': 0,
'HEALTH_ERR': 1,
'HEALTH_WARN': 2,
- 'HEALTH_OLD': 3,
- 'HEALTH_OK': 4
+ 'HEALTH_UPGRADE': 3,
+ 'HEALTH_OLD': 4,
+ 'HEALTH_OK': 5
};
var healthmap = [
'HEALTH_UNKNOWN',
'HEALTH_ERR',
'HEALTH_WARN',
+ 'HEALTH_UPGRADE',
'HEALTH_OLD',
'HEALTH_OK'
];
--
2.20.1
More information about the pve-devel
mailing list