summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-19 14:19:42 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-20 19:46:35 +0100
commitfb8aa31dbf961d23f508eecf1cb44c7dbbac1d70 (patch)
tree02b4da201381895dba656b9b61cf65f6a3a5cdf7 /apps/files/js
parent1bf742c462b238f441d1a6f115a3f489c98f8bb4 (diff)
downloadnextcloud-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.js20
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');
+ }
},
/**