diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-06-27 10:46:12 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-06-30 08:21:56 +0000 |
commit | e37ca5694b20b180889a2d80cd6d23c81f59cd01 (patch) | |
tree | 8e076ab103a882e45029738b8eca70d853bdcf74 /apps/files/js | |
parent | 96348bf75d613f4b3430e9e57b1b1677a1ee1c48 (diff) | |
download | nextcloud-server-e37ca5694b20b180889a2d80cd6d23c81f59cd01.tar.gz nextcloud-server-e37ca5694b20b180889a2d80cd6d23c81f59cd01.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/js')
-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) { |