aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-04-27 15:28:54 +0200
committerGitHub <noreply@github.com>2023-04-27 15:28:54 +0200
commitda274d18ffd06ac102fe61c0d464291b43f30e5a (patch)
treeccdff841ee40db122b13b7d8e36cdf4b05aa7f46 /apps/files/js
parent5e96228eb1f7999a327dacab22055ec2aa8e28a3 (diff)
parentf9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb (diff)
downloadnextcloud-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.js14
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'