Fixed: Blocklisting pending releases

Closes #2357
Closes #2478
Closes #3247

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick 2023-10-20 20:36:51 -05:00
parent 0a52be5c9e
commit 4ea5c68216
7 changed files with 144 additions and 71 deletions

View file

@ -299,6 +299,17 @@ class Queue extends Component {
return !!(item && item.artistId && item.albumId);
})
)}
allPending={isConfirmRemoveModalOpen && (
selectedIds.every((id) => {
const item = items.find((i) => i.id === id);
if (!item) {
return false;
}
return item.status === 'delay' || item.status === 'downloadClientUnavailable';
})
)}
onRemovePress={this.onRemoveSelectedConfirmed}
onModalClose={this.onConfirmRemoveModalClose}
/>