Filter all episodes when selecting all

This commit is contained in:
Rasmus Krämer 2022-04-12 14:05:24 +02:00
parent f5e892b862
commit ab895fa8ed
No known key found for this signature in database
GPG Key ID: EC9E510611BFDAA2

View File

@ -81,7 +81,7 @@ export default {
},
selectAll: {
get() {
return this.episodesSelected.length == this.episodes.length
return this.episodesSelected.length == this.episodes.filter((_, index) => !(this.episodes[index].enclosure && this.itemEpisodeMap[this.episodes[index].enclosure.url])).length
},
set(val) {
for (const key in this.selectedEpisodes) {