MediaItemHistory and history page

This commit is contained in:
advplyr 2023-01-14 18:01:12 -06:00
parent b1805875b9
commit 297eca6a86
22 changed files with 651 additions and 98 deletions

View file

@ -367,6 +367,14 @@ export default {
const items = []
if (!this.isPodcast) {
// TODO: Implement on iOS
if (!this.isIos) {
items.push({
text: 'History',
value: 'history'
})
}
items.push({
text: this.userIsFinished ? 'Mark as Not Finished' : 'Mark as Finished',
value: 'markFinished'
@ -401,6 +409,10 @@ export default {
if (width * this.bookCoverAspectRatio > 325) width = 325 / this.bookCoverAspectRatio
return width
},
mediaId() {
if (this.isPodcast) return null
return this.serverLibraryItemId || this.localLibraryItemId
}
},
methods: {
@ -430,6 +442,8 @@ export default {
} else if (action === 'markFinished') {
if (this.isProcessingReadUpdate) return
this.toggleFinished()
} else if (action === 'history') {
this.$router.push(`/media/${this.mediaId}/history?title=${this.title}`)
}
},
moreButtonPress() {