[pve-devel] [PATCH manager 3/4] VMSelctor: add HA state and allow to filter with it
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Mar 15 15:46:06 CET 2017
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 at proxmox.com>
---
www/manager6/data/ResourceStore.js | 2 +-
www/manager6/form/VMSelector.js | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/www/manager6/data/ResourceStore.js b/www/manager6/data/ResourceStore.js
index 910480c..e655eaa 100644
--- a/www/manager6/data/ResourceStore.js
+++ b/www/manager6/data/ResourceStore.js
@@ -237,7 +237,7 @@ Ext.define('PVE.data.ResourceStore', {
hastate: {
header: gettext('HA State'),
type: 'string',
- defaultValue: '',
+ defaultValue: 'unmanaged',
hidden: true,
sortable: true
}
diff --git a/www/manager6/form/VMSelector.js b/www/manager6/form/VMSelector.js
index 5fdee9c..086df38 100644
--- a/www/manager6/form/VMSelector.js
+++ b/www/manager6/form/VMSelector.js
@@ -85,7 +85,15 @@ Ext.define('PVE.form.VMSelector', {
un: function(){}
}
}
- }
+ },
+ {
+ header: 'HA ' + gettext('Status'),
+ dataIndex: 'hastate',
+ flex: 1,
+ filter: {
+ type: 'list'
+ }
+ }
],
selModel: {
--
2.1.4
More information about the pve-devel
mailing list