Merge pull request #10537 from MartB/mselect_fix

Fix multiSelectMenu for public shares #10536
This commit is contained in:
Roeland Jago Douma 2018-08-09 10:41:38 +02:00 committed by GitHub
commit ca0f2f63eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -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;

View File

@ -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');
}