mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix button visibility if user is not allowed to delete
This commit is contained in:
parent
88d95ffa01
commit
f7f2a6424c
1 changed files with 2 additions and 1 deletions
|
@ -114,8 +114,9 @@ function fillSubtitleList(context, item) {
|
|||
itemHtml += '</a>';
|
||||
itemHtml += '</div>';
|
||||
|
||||
const buttonVisibility = item.CanDelete ? '' : 'hide';
|
||||
if (!layoutManager.tv && s.Path) {
|
||||
itemHtml += '<button is="paper-icon-button-light" data-index="' + s.Index + '" title="' + globalize.translate('Delete') + '" class="btnDelete listItemButton"><span class="material-icons delete" aria-hidden="true"></span></button>';
|
||||
itemHtml += '<button is="paper-icon-button-light" data-index="' + s.Index + '" title="' + globalize.translate('Delete') + '" class="btnDelete listItemButton ' + buttonVisibility + '"><span class="material-icons delete" aria-hidden="true"></span></button>';
|
||||
}
|
||||
|
||||
itemHtml += '</' + tagName + '>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue