From f7f2a6424ce0ef97a7aee9beba80e63142a5cfc9 Mon Sep 17 00:00:00 2001 From: Ch1nkara Date: Fri, 17 May 2024 09:33:44 +0000 Subject: [PATCH] fix button visibility if user is not allowed to delete --- src/components/subtitleeditor/subtitleeditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/subtitleeditor/subtitleeditor.js b/src/components/subtitleeditor/subtitleeditor.js index ffe05ae5c3..9fcc05c07a 100644 --- a/src/components/subtitleeditor/subtitleeditor.js +++ b/src/components/subtitleeditor/subtitleeditor.js @@ -114,8 +114,9 @@ function fillSubtitleList(context, item) { itemHtml += ''; itemHtml += ''; + const buttonVisibility = item.CanDelete ? '' : 'hide'; if (!layoutManager.tv && s.Path) { - itemHtml += ''; + itemHtml += ''; } itemHtml += '';