Skip to content

Commit 9ced764

Browse files
authored
Merge pull request #37956 from nextcloud/backport/37948/stable25
[stable25] Do not show Tags action when systemtag is disabled
2 parents a08f38c + b5f86c7 commit 9ced764

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

apps/files/js/app.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@
117117
iconClass: 'icon-delete',
118118
order: 99,
119119
},
120-
{
121-
name: 'tags',
122-
displayName: t('files', 'Tags'),
123-
iconClass: 'icon-tag',
124-
order: 100,
125-
},
120+
...(
121+
OCA?.SystemTags === undefined ? [] : ([{
122+
name: 'tags',
123+
displayName: t('files', 'Tags'),
124+
iconClass: 'icon-tag',
125+
order: 100,
126+
}])
127+
),
126128
],
127129
sorting: {
128130
mode: $('#defaultFileSorting').val(),

0 commit comments

Comments
 (0)