Skip to content

Commit

Permalink
Merge pull request #37948 from nextcloud/artonge/fix/dont_show_tags_a…
Browse files Browse the repository at this point in the history
…ction_when_systemtag_is_disabled

Do not show Tags action when systemtag is disabled
  • Loading branch information
szaimen authored Apr 27, 2023
2 parents 5e96228 + f9c427c commit da274d1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions apps/files/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit da274d1

Please sign in to comment.