the combogrid sets the default itself correctly Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- depends on the widget-toolkit patch
www/manager6/form/NodeSelector.js | 5 +---- www/manager6/ha/GroupSelector.js | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/www/manager6/form/NodeSelector.js b/www/manager6/form/NodeSelector.js index c3e3da31..bc282287 100644 --- a/www/manager6/form/NodeSelector.js +++ b/www/manager6/form/NodeSelector.js @@ -12,10 +12,7 @@ Ext.define('PVE.form.NodeSelector', { // only allow those nodes (array) allowedNodes: undefined, - // set default value to empty array, else it inits it with - // null and after the store load it is an empty array, - // triggering dirtychange - value: [], + valueField: 'node', displayField: 'node', store: { diff --git a/www/manager6/ha/GroupSelector.js b/www/manager6/ha/GroupSelector.js index 61ab0c03..1823472f 100644 --- a/www/manager6/ha/GroupSelector.js +++ b/www/manager6/ha/GroupSelector.js @@ -2,7 +2,6 @@ Ext.define('PVE.ha.GroupSelector', { extend: 'Proxmox.form.ComboGrid', alias: ['widget.pveHAGroupSelector'], - value: [], autoSelect: false, valueField: 'group', displayField: 'group', -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel