diff options
author | Simon L <szaimen@e.mail.de> | 2023-04-27 15:28:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 15:28:54 +0200 |
commit | da274d18ffd06ac102fe61c0d464291b43f30e5a (patch) | |
tree | ccdff841ee40db122b13b7d8e36cdf4b05aa7f46 /apps/files/js | |
parent | 5e96228eb1f7999a327dacab22055ec2aa8e28a3 (diff) | |
parent | f9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb (diff) | |
download | nextcloud-server-da274d18ffd06ac102fe61c0d464291b43f30e5a.tar.gz nextcloud-server-da274d18ffd06ac102fe61c0d464291b43f30e5a.zip |
Merge pull request #37948 from nextcloud/artonge/fix/dont_show_tags_action_when_systemtag_is_disabled
Do not show Tags action when systemtag is disabled
Diffstat (limited to 'apps/files/js')
-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 1252bd5796c..ba80e028bd7 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -108,12 +108,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() === 'basename' |