]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not show Tags action when systemtag is disabled 37948/head
authorLouis Chemineau <louis@chmn.me>
Thu, 27 Apr 2023 11:53:21 +0000 (13:53 +0200)
committerLouis Chemineau <louis@chmn.me>
Thu, 27 Apr 2023 11:53:21 +0000 (13:53 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/files/js/app.js

index 1252bd5796cb3d73758165f2ed609c8827da1d4d..ba80e028bd794d12deae5bbce68598c670d24710 100644 (file)
                                                        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'