aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-04-27 13:53:21 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-27 13:53:21 +0200
commitf9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb (patch)
treecf1851b4cc1cd6d0752df54b4a7c98e990773c77 /apps/files
parent4df145a6bcb9c6e7999130c1d361466f128bd64e (diff)
downloadnextcloud-server-f9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb.tar.gz
nextcloud-server-f9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb.zip
Do not show Tags action when systemtag is disabled
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files')
-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'