From f9c427ce635ca5a4c57a15093c7a97dc6ccdf9eb Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 27 Apr 2023 13:53:21 +0200 Subject: [PATCH] Do not show Tags action when systemtag is disabled Signed-off-by: Louis Chemineau --- apps/files/js/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/files/js/app.js b/apps/files/js/app.js index 1252bd5796c..ba80e028bd7 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -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' -- 2.39.5