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

View file

@ -134,6 +134,14 @@ export default {
text: this.$strings.LabelLibrarySortByProgress,
value: 'progress'
},
{
text: this.$strings.LabelLibrarySortByStartDate,
value: 'startedDate'
},
{
text: this.$strings.LabelLibrarySortByFinishDate,
value: 'finishedDate'
},
{
text: this.$strings.LabelRandomly,
value: 'random'
@ -200,4 +208,4 @@ export default {
.librarySortMenu {
max-height: calc(100vh - 125px);
}
</style>
</style>

View file

@ -371,7 +371,9 @@
"LabelFileBirthtime": "File Birthtime",
"LabelFileBornDate": "Born {0}",
"LabelFileModified": "File Modified",
"LabelFileFinishedDate": "Finished {0}",
"LabelFileModifiedDate": "Modified {0}",
"LabelFileStartedDate": "Started {0}",
"LabelFilename": "Filename",
"LabelFilterByUser": "Filter by User",
"LabelFindEpisodes": "Find Episodes",
@ -433,7 +435,9 @@
"LabelLibraryFilterSublistEmpty": "No {0}",
"LabelLibraryItem": "Library Item",
"LabelLibraryName": "Library Name",
"LabelLibrarySortByFinishDate": "Finish Date",
"LabelLibrarySortByProgress": "Progress Updated",
"LabelLibrarySortByStartDate": "Start Date",
"LabelLimit": "Limit",
"LabelLineSpacing": "Line spacing",
"LabelListenAgain": "Listen Again",
@ -1137,4 +1141,4 @@
"ToastUserPasswordMismatch": "Passwords do not match",
"ToastUserPasswordMustChange": "New password cannot match old password",
"ToastUserRootRequireName": "Must enter a root username"
}
}