[pve-devel] [PATCH manager 4/4] change the ha resources columns

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


rename Request State to State, and add the request_state and crm_state
as hidden columns (so that the user can display them if they want)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ha/Resources.js | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index 8dfb4d9..16151cc 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -121,13 +121,27 @@ Ext.define('PVE.ha.ResourcesView', {
 		    dataIndex: 'sid'
 		},
 		{
+		    header: gettext('State'),
+		    width: 100,
+		    sortable: true,
+		    dataIndex: 'state'
+		},
+		{
 		    header: gettext('Request State'),
 		    width: 100,
+		    hidden: true,
 		    sortable: true,
 		    renderer: function(v) {
 			return v || 'started';
 		    },
-		    dataIndex: 'state'
+		    dataIndex: 'request_state'
+		},
+		{
+		    header: gettext('CRM State'),
+		    width: 100,
+		    hidden: true,
+		    sortable: true,
+		    dataIndex: 'crm_state'
 		},
 		{
 		    header: gettext('Max. Restart'),
-- 
2.1.4





More information about the pve-devel mailing list