Do not show Tags action when systemtag is disabled

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2023-04-27 13:53:21 +02:00
parent 4df145a6bc
commit f9c427ce63

View file

@ -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'