fix(web): Button display problem after set delete_allowed
to False.
This commit is contained in:
@ -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');
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user