diff options
author | MartB <mart.b@outlook.de> | 2018-08-04 18:09:37 +0200 |
---|---|---|
committer | MartB <mart.b@outlook.de> | 2018-08-06 12:42:13 +0200 |
commit | 5109743383cdea5e73d1562f7a82051ed3a40a15 (patch) | |
tree | 6c125f5c6dcecf6677c75da57f7edccb2616a5f8 /apps/files_sharing | |
parent | ca54166e352f4e54887dd307bb10cc60308dbc6a (diff) | |
download | nextcloud-server-5109743383cdea5e73d1562f7a82051ed3a40a15.tar.gz nextcloud-server-5109743383cdea5e73d1562f7a82051ed3a40a15.zip |
Fix multiSelectMenu for public shares #10536
Signed-off-by: Martin Böh (MartB) <mart.b@outlook.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/public.js | 19 | ||||
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 1 |
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 998964b2d8a..64ffe8bbf2e 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -72,7 +72,24 @@ OCA.Sharing.PublicApp = { fileActions: fileActions, detailsViewEnabled: false, filesClient: filesClient, - enableUpload: true + enableUpload: true, + multiSelectMenu: [ + { + name: 'copyMove', + displayName: t('files', 'Move or copy'), + iconClass: 'icon-external', + }, + { + name: 'download', + displayName: t('files', 'Download'), + iconClass: 'icon-download', + }, + { + name: 'delete', + displayName: t('files', 'Delete'), + iconClass: 'icon-delete', + } + ] } ); this.files = OCA.Files.Files; diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 6ebffed2b58..9594d6e71f5 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -399,6 +399,7 @@ class ShareController extends AuthPublicShareController { \OCP\Util::addScript('files', 'fileinfomodel'); \OCP\Util::addScript('files', 'newfilemenu'); \OCP\Util::addScript('files', 'files'); + \OCP\Util::addScript('files', 'filemultiselectmenu'); \OCP\Util::addScript('files', 'filelist'); \OCP\Util::addScript('files', 'keyboardshortcuts'); } |