]> source.dussan.org Git - nextcloud-server.git/commit
Distinguish legacy file actions from regular file actions
authorVincent Petry <pvince81@owncloud.com>
Tue, 20 May 2014 14:01:34 +0000 (16:01 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 30 May 2014 08:06:29 +0000 (10:06 +0200)
commitef59c69dc822c9ff69c564c41e0dfdce142b9cdf
treea99667ab22daba65cbbd77ac591fccac234f06eb
parentfa32243d84e1801c379a5e8956ba2f3de236c718
Distinguish legacy file actions from regular file actions

Legacy file actions are registered by legacy apps through
window.FileActions.register(). These actions can only be used by the
main file list ("all files") because legacy apps can only deal with a
single list / container.

New file actions of compatible apps must be registered through
OCA.Files.fileActions. These will be used for other lists like the
sharing overview.

Fixed versions and sharing actions to use OCA.Files.fileActions, which
makes them available in the sharing overview list.
13 files changed:
apps/files/js/app.js
apps/files/js/fileactions.js
apps/files/js/filelist.js
apps/files/tests/js/appSpec.js
apps/files/tests/js/fileactionsSpec.js
apps/files/tests/js/filelistSpec.js
apps/files_sharing/js/app.js
apps/files_sharing/js/public.js
apps/files_sharing/js/share.js
apps/files_trashbin/js/app.js
apps/files_trashbin/js/filelist.js
apps/files_trashbin/tests/js/filelistSpec.js
apps/files_versions/js/versions.js