SortBy Options: Started Date & Finished Date implemented. English-only strings

This commit is contained in:
tagmeh 2025-08-10 17:55:34 -05:00
parent 28d98b4dbc
commit c023f029d7
4 changed files with 46 additions and 5 deletions

View file

@ -353,6 +353,14 @@ export default {
if (!this.userProgressLastUpdated) return '\u00A0'
return this.$getString('LabelLastProgressDate', [this.$formatDatetime(this.userProgressLastUpdated, this.dateFormat, this.timeFormat)])
}
if (this.orderBy === 'startedDate') {
if (!this.userProgressStartedDate) return '\u00A0'
return this.$getString('LabelFileStartedDate', [this.$formatDate(this.userProgressStartedDate, this.dateFormat, this.timeFormat)])
}
if (this.orderBy === 'finishedDate') {
if (!this.userProgressFinishedDate) return '\u00A0'
return this.$getString('LabelFileFinishedDate', [this.$formatDate(this.userProgressFinishedDate, this.dateFormat, this.timeFormat)])
}
return null
},
episodeProgress() {
@ -389,6 +397,15 @@ export default {
if (!this.userProgress) return null
return this.userProgress.lastUpdate
},
userProgressStartedDate() {
if (!this.userProgress) return null
return this.userProgress.startedAt
},
userProgressFinishedDate() {
if (!this.userProgress) return null
console.log(this.userProgress)
return this.userProgress.finishedAt
},
itemIsFinished() {
if (this.booksInSeries) return this.seriesIsFinished
return this.userProgress ? !!this.userProgress.isFinished : false