VMSelctor: add HA state and allow to filter with it

This allows also to filter after HA states, so one may bulk control
HA managed services more easily or do bulk actions just on unmanaged
VMs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2017-03-15 15:46:06 +01:00 committed by Dietmar Maurer
parent fb89510e13
commit 8a3b1473d3
2 changed files with 9 additions and 1 deletions

View File

@ -237,7 +237,7 @@ Ext.define('PVE.data.ResourceStore', {
hastate: {
header: gettext('HA State'),
type: 'string',
defaultValue: '',
defaultValue: 'unmanaged',
hidden: true,
sortable: true
}

View File

@ -85,6 +85,14 @@ Ext.define('PVE.form.VMSelector', {
un: function(){}
}
}
},
{
header: 'HA ' + gettext('Status'),
dataIndex: 'hastate',
flex: 1,
filter: {
type: 'list'
}
}
],