[pve-devel] [PATCH manager 1/4] add new fields to ha models

Dominik Csapak d.csapak at proxmox.com
Tue Nov 22 12:07:28 CET 2016


to be prepared for the new ha status

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ha/Resources.js  | 3 ++-
 www/manager6/ha/StatusView.js | 5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index 4ad0178..872d925 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -180,7 +180,8 @@ Ext.define('PVE.ha.ResourcesView', {
 	extend: 'Ext.data.Model',
 	fields: [ 
 	  'sid', 'state', 'digest', 'errors', 'group', 'comment',
-	  'max_restart', 'max_relocate'
+	  'max_restart', 'max_relocate', 'type', 'status',
+	  'crm_state', 'request_state'
 	],
 	idProperty: 'sid'
     });
diff --git a/www/manager6/ha/StatusView.js b/www/manager6/ha/StatusView.js
index 1426961..5a9dd59 100644
--- a/www/manager6/ha/StatusView.js
+++ b/www/manager6/ha/StatusView.js
@@ -71,7 +71,10 @@ Ext.define('PVE.ha.StatusView', {
     Ext.define('pve-ha-status', {
 	extend: 'Ext.data.Model',
 	fields: [ 
-	    'id', 'type', 'node', 'status', 'sid'
+	    'id', 'type', 'node', 'status', 'sid',
+	    'state', 'group', 'comment',
+	    'max_restart', 'max_relocate', 'type',
+	    'crm_state', 'request_state'
 	],
 	idProperty: 'id'
     });
-- 
2.1.4





More information about the pve-devel mailing list