We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b7f81b commit 40b380bCopy full SHA for 40b380b
apps/files/js/fileactions.js
@@ -597,8 +597,8 @@
597
Object.values = objectValues;
598
}
599
600
- var menuActions = Object.values(this.actions.all).filter(function (action) {
601
- return action.type !== OCA.Files.FileActions.TYPE_INLINE;
+ var menuActions = Object.values(actions).filter(function (action) {
+ return action.type !== OCA.Files.FileActions.TYPE_INLINE && (!defaultAction || action.name !== defaultAction.name)
602
});
603
// do not render the menu if nothing is in it
604
if (menuActions.length > 0) {
0 commit comments