mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 11:27:04 +00:00
ext6migrate: fix NodeSelector
the intial value of the node selector is null, but when the store is loaded, it becomes an empty array this triggers the 'dirtychanged' event and causes the edit windows to enable the OK/Submit Button, even when no change is made this fix sets the default value to an empty array, which fixes the mentioned behaviour Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b4ea8af6cc
commit
fbf6e7b412
@ -9,7 +9,10 @@ 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: {
|
||||
|
Loading…
Reference in New Issue
Block a user