Merge pull request #456 from rasmuslos/master

Fixed "select all" button
This commit is contained in:
advplyr 2022-04-12 07:09:15 -05:00 committed by GitHub
commit 642e9787c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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) {

View File

@ -136,6 +136,6 @@ module.exports = {
},
server: {
port: process.env.NODE_ENV === 'production' ? 80 : 3000,
host: process.env.NODE_ENV === 'production' ? '0.0.0.0' : 'localhost'
host: '0.0.0.0'
}
}