Sync file list with file actions
Whenever file actions are registered later, now the file lists are automatically notified. Added FileActions.addUpdateListener() to be able to receive such notifications. This removes the need for apps to manually call FileActions.display() after registering new actions. This fixes issues with race conditions when file actions are registered after the file list was already rendered.
Showing
- apps/files/js/app.js 4 additions, 0 deletionsapps/files/js/app.js
- apps/files/js/fileactions.js 50 additions, 5 deletionsapps/files/js/fileactions.js
- apps/files/js/filelist.js 22 additions, 0 deletionsapps/files/js/filelist.js
- apps/files/tests/js/fileactionsSpec.js 52 additions, 1 deletionapps/files/tests/js/fileactionsSpec.js
- apps/files/tests/js/filelistSpec.js 32 additions, 0 deletionsapps/files/tests/js/filelistSpec.js
- apps/files_external/tests/appSpec.js 1 addition, 0 deletionsapps/files_external/tests/appSpec.js
- apps/files_external/tests/js/mountsfilelistSpec.js 1 addition, 0 deletionsapps/files_external/tests/js/mountsfilelistSpec.js
- apps/files_sharing/tests/js/appSpec.js 2 additions, 0 deletionsapps/files_sharing/tests/js/appSpec.js
- apps/files_sharing/tests/js/shareSpec.js 2 additions, 0 deletionsapps/files_sharing/tests/js/shareSpec.js
- apps/files_sharing/tests/js/sharedfilelistSpec.js 1 addition, 0 deletionsapps/files_sharing/tests/js/sharedfilelistSpec.js
- apps/files_trashbin/tests/js/filelistSpec.js 1 addition, 0 deletionsapps/files_trashbin/tests/js/filelistSpec.js
Loading
Please register or sign in to comment