fix(web): Button display problem after set delete_allowed to False.

This commit is contained in:
Terry Geng
2022-01-21 22:32:13 -05:00
parent 81b78fa8e3
commit 763cc960a6
2 changed files with 3 additions and 4 deletions

View File

@ -530,10 +530,9 @@ function displayLibraryControls(data) {
if (data.delete_allowed) {
$('#deleteAllowed').val('true');
$('.library-delete').show();
} else {
$('#uploadDisabled').val('false');
$('.library-delete').hide();
$('#deleteAllowed').val('false');
$('.library-delete').remove();
}
const dataList = $('#upload-target-dirs');

View File

@ -269,7 +269,7 @@
</button>
<button class="library-item-trash btn btn-danger btn-sm btn-space library-delete" type="button"
aria-label="{{ tr('remove_song_from_library') }}">
<i class="fas fa-trash-alt"></i>
<i class="fas fa-trash-alt" aria-hidden="true"></i>
</button>
</div>
</div>