Skip to content

Commit

Permalink
Merge pull request #10537 from MartB/mselect_fix
Browse files Browse the repository at this point in the history
Fix multiSelectMenu for public shares #10536
  • Loading branch information
rullzer authored Aug 9, 2018
2 parents a21c93a + 5109743 commit ca0f2f6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion apps/files_sharing/js/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions apps/files_sharing/lib/Controller/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ public function showShare($path = ''): TemplateResponse {
\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');
}
Expand Down

0 comments on commit ca0f2f6

Please sign in to comment.