summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 3623663ed6c..ac3afba038d 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -558,7 +558,13 @@
}
});
- this._renderMenuTrigger($tr, context);
+ var menuActions = Object.values(this.actions.all).filter(function (action) {
+ return action.type !== OCA.Files.FileActions.TYPE_INLINE;
+ });
+ // do not render the menu if nothing is in it
+ if (menuActions.length > 0) {
+ this._renderMenuTrigger($tr, context);
+ }
if (triggerEvent){
fileList.$fileList.trigger(jQuery.Event("fileActionsReady", {fileList: fileList, $files: $tr}));