also the correct value for haGroupSelector is [] not '', with this, the reset button works correctly
Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- www/manager6/ha/GroupSelector.js | 1 + www/manager6/ha/ResourceEdit.js | 1 - www/manager6/ha/Resources.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/ha/GroupSelector.js b/www/manager6/ha/GroupSelector.js index b55fc56..eb37b0e 100644 --- a/www/manager6/ha/GroupSelector.js +++ b/www/manager6/ha/GroupSelector.js @@ -2,6 +2,7 @@ Ext.define('PVE.ha.GroupSelector', { extend: 'PVE.form.ComboGrid', alias: ['widget.pveHAGroupSelector'], + value: [], autoSelect: false, valueField: 'group', displayField: 'group', diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js index 4803fc7..326d268 100644 --- a/www/manager6/ha/ResourceEdit.js +++ b/www/manager6/ha/ResourceEdit.js @@ -75,7 +75,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', { { xtype: 'pveHAGroupSelector', name: 'group', - value: '', fieldLabel: gettext('Group') }, { diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js index 339e96d..df26788 100644 --- a/www/manager6/ha/Resources.js +++ b/www/manager6/ha/Resources.js @@ -178,7 +178,7 @@ Ext.define('PVE.ha.ResourcesView', { extend: 'Ext.data.Model', fields: [ 'sid', 'state', 'digest', 'errors', 'group', 'comment', - 'max_restart', 'max_relocate', + 'max_restart', 'max_relocate' ], idProperty: 'sid' }); -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel