Skip to content

Commit da274d1

Browse files
authored
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
2 parents 5e96228 + f9c427c commit da274d1

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
@@ -108,12 +108,14 @@
108108
iconClass: 'icon-delete',
109109
order: 99,
110110
},
111-
{
112-
name: 'tags',
113-
displayName: t('files', 'Tags'),
114-
iconClass: 'icon-tag',
115-
order: 100,
116-
},
111+
...(
112+
OCA?.SystemTags === undefined ? [] : ([{
113+
name: 'tags',
114+
displayName: t('files', 'Tags'),
115+
iconClass: 'icon-tag',
116+
order: 100,
117+
}])
118+
),
117119
],
118120
sorting: {
119121
mode: $('#defaultFileSorting').val() === 'basename'

0 commit comments

Comments
 (0)