Add:Not Finished progress filter #650

This commit is contained in:
advplyr 2022-06-02 18:20:18 -05:00
parent 67e02fddbd
commit 0d1ff35c5e
2 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,7 @@ export default {
return this.filterData.languages || []
},
progress() {
return ['Finished', 'In Progress', 'Not Started']
return ['Finished', 'In Progress', 'Not Started', 'Not Finished']
},
missing() {
return ['ASIN', 'ISBN', 'Subtitle', 'Author', 'Publish Year', 'Series', 'Description', 'Genres', 'Tags', 'Narrator', 'Publisher', 'Language']

View File

@ -32,6 +32,7 @@ module.exports = {
var itemProgress = user.getMediaProgress(li.id)
if (filter === 'Finished' && (itemProgress && itemProgress.isFinished)) return true
if (filter === 'Not Started' && !itemProgress) return true
if (filter === 'Not Finished' && !itemProgress || !itemProgress.isFinished) return true
if (filter === 'In Progress' && (itemProgress && itemProgress.inProgress)) return true
return false
})