mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-01 08:15:15 +02:00
Update LazyBookCard progress calculation to handle finished items
This commit is contained in:
parent
057bc1a0c0
commit
05c1ced65c
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ export default {
|
||||||
return progressPercent / this.libraryItemIdsInSeries.length
|
return progressPercent / this.libraryItemIdsInSeries.length
|
||||||
},
|
},
|
||||||
userProgressPercent() {
|
userProgressPercent() {
|
||||||
let progressPercent = this.booksInSeries ? this.seriesProgressPercent : this.useEBookProgress ? this.userProgress?.ebookProgress || 0 : this.userProgress?.progress || 0
|
let progressPercent = this.itemIsFinished ? 1 : this.booksInSeries ? this.seriesProgressPercent : this.useEBookProgress ? this.userProgress?.ebookProgress || 0 : this.userProgress?.progress || 0
|
||||||
return Math.max(Math.min(1, progressPercent), 0)
|
return Math.max(Math.min(1, progressPercent), 0)
|
||||||
},
|
},
|
||||||
itemIsFinished() {
|
itemIsFinished() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue