diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-19 14:19:42 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-20 19:46:35 +0100 |
commit | fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70 (patch) | |
tree | 02b4da201381895dba656b9b61cf65f6a3a5cdf7 /apps/files/js | |
parent | 1bf742c462b238f441d1a6f115a3f489c98f8bb4 (diff) | |
download | nextcloud-server-fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70.tar.gz nextcloud-server-fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70.zip |
Allow to hide download option for folders shared by link
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/fileactions.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 5af558d77ba..10fedc88288 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -362,15 +362,17 @@ // remove previous $tr.find('.action-menu').remove(); - var $el = this._renderInlineAction({ - name: 'menu', - displayName: '', - iconClass: 'icon-more', - altText: t('files', 'Actions'), - action: this._showMenuClosure - }, false, context); - - $el.addClass('permanent'); + if (this.actions.length > 0) { + var $el = this._renderInlineAction({ + name: 'menu', + displayName: '', + iconClass: 'icon-more', + altText: t('files', 'Actions'), + action: this._showMenuClosure + }, false, context); + + $el.addClass('permanent'); + } }, /** |