Skip to content

Commit f9c427c

Browse files
committed
Do not show Tags action when systemtag is disabled
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 4df145a commit f9c427c

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)