proxmox-backup/www/form
Dominik Csapak f49cd6c135 ui: form/GroupFilter: copy records for the pbsGroupSelectors
store.getData() returns an 'Ext.util.Collection' which is a special
class that does more than being an array of records. Namely, it can
have 'observers' which can react on the change of the collection

Here, the 'onWidgetAttach' callback will be called twice on the first
row add and the widgets (and thus stores) are cached by extjs. When
doing a 'setData' of a Collection, it tries to add the store as an
observer, but due to the above caching and multiple calling this fails
since the store is already an observer.

For this reason, we want to actually copy the records (which neither
the store, nor the Collection has a method for...)

This gives us an additional benefit: The different pbsGroupSelectors can
sort independently now, before it was all linked to the original store's
collection.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 14:30:45 +01:00
..
AuthidSelector.js ui: auth/token selector: tell ExtJS we injected data into the store 2020-11-09 12:21:02 +01:00
CalendarEvent.js ui: form/CalendarEvent: do not set displayField 2021-05-26 19:18:40 +02:00
DataStoreSelector.js ui: consistently spell Datastore without space between words 2020-07-02 17:20:41 +02:00
GroupFilter.js ui: form/GroupFilter: copy records for the pbsGroupSelectors 2021-12-01 14:30:45 +01:00
GroupSelector.js ui: add GroupSelector 2021-12-01 06:41:21 +01:00
PermissionPathSelector.js ui: add /access/domains to PermissionPathsStore 2021-07-09 15:36:54 +02:00
RemoteSelector.js remote.cfg: rename userid to 'auth-id' 2020-11-10 13:25:24 +01:00
TokenSelector.js ui: token selector: use same layout as auth id selector 2020-11-09 12:24:54 +01:00