mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-17 06:11:16 +01:00
Update LazyBookCard progress calculation to handle finished items
This commit is contained in:
1 parent
057bc1a0c0
commit
05c1ced65c
1 file changed
+1
-1
@@ -352,7 +352,7 @@ export default {
|
||||
return progressPercent / this.libraryItemIdsInSeries.length
|
||||
},
|
||||
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)
|
||||
},
|
||||
itemIsFinished() {
|
||||
|
||||
Reference in new issue
Block a user