diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2023-04-27 18:25:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 18:25:39 +0200 |
commit | ef9c22578a9b3c2766e441aa559f9a546c6e678f (patch) | |
tree | 8782936f8ba81070a0991884a1d326fd25fa0943 /apps/files | |
parent | dba57673bd9b400a9cc41dd5e3c58edd96339660 (diff) | |
parent | 5bc4a0b594d9763edb9e24371b23a72bfb249381 (diff) | |
download | nextcloud-server-ef9c22578a9b3c2766e441aa559f9a546c6e678f.tar.gz nextcloud-server-ef9c22578a9b3c2766e441aa559f9a546c6e678f.zip |
Merge pull request #37957 from nextcloud/backport/37948/stable26
[stable26] Do not show Tags action when systemtag is disabled
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/app.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js index f0c3ac5c212..1fb1e9fca0b 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -109,12 +109,14 @@ iconClass: 'icon-delete', order: 99, }, - { - name: 'tags', - displayName: t('files', 'Tags'), - iconClass: 'icon-tag', - order: 100, - }, + ...( + OCA?.SystemTags === undefined ? [] : ([{ + name: 'tags', + displayName: t('files', 'Tags'), + iconClass: 'icon-tag', + order: 100, + }]) + ), ], sorting: { mode: $('#defaultFileSorting').val(), |