aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-06-27 10:46:12 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-07-01 16:04:37 +0200
commit5f0de0b740d833dccde9d48831f856bc56b0266f (patch)
tree721b8ca74766ac0e0f1fc7b37b3b9f921d2b0d09 /apps/files
parentadeeb327f2acdd8915a17633f17cbf96ececf669 (diff)
downloadnextcloud-server-5f0de0b740d833dccde9d48831f856bc56b0266f.tar.gz
nextcloud-server-5f0de0b740d833dccde9d48831f856bc56b0266f.zip
fix(files): Only render the menu if there are actions to show
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/fileactions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 7e3a0b9f40b..e7994291f38 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -597,8 +597,8 @@
Object.values = objectValues;
}
- var menuActions = Object.values(this.actions.all).filter(function (action) {
- 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)
});
// do not render the menu if nothing is in it
if (menuActions.length > 0) {