diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-06-27 10:46:12 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-06-29 20:26:54 +0200 |
commit | 40b380bb99b1ea5626b4e44a670cb630d909ad35 (patch) | |
tree | 4bb219cd50900318509cac3e74c611be39a84889 /apps | |
parent | 5b7f81b1b512d5b6038171a00d058bf3967c6d0d (diff) | |
download | nextcloud-server-40b380bb99b1ea5626b4e44a670cb630d909ad35.tar.gz nextcloud-server-40b380bb99b1ea5626b4e44a670cb630d909ad35.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')
-rw-r--r-- | apps/files/js/fileactions.js | 4 |
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) { |