Fix multiSelectMenu for public shares #10536

Signed-off-by: Martin Böh (MartB) <mart.b@outlook.de>
This commit is contained in:
MartB 2018-08-04 18:09:37 +02:00
parent ca54166e35
commit 5109743383
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');
}