change the ha resources columns

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@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-11-22 12:07:31 +01:00 committed by Dietmar Maurer
parent fba0a1d89e
commit 9eb1d8ee70

View File

@ -120,14 +120,28 @@ Ext.define('PVE.ha.ResourcesView', {
sortable: true,
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'),