mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-14 01:48:37 +01:00
Fix:Reactivity for book cards on home page
This commit is contained in:
parent
86f39ccc83
commit
db25affd43
@ -118,6 +118,15 @@ export default {
|
||||
showCoverBg: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
bookMount: {
|
||||
handler(newVal) {
|
||||
if (newVal) {
|
||||
this.audiobook = newVal
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
showExperimentalFeatures() {
|
||||
return this.store.state.showExperimentalFeatures
|
||||
@ -198,8 +207,8 @@ export default {
|
||||
},
|
||||
displaySortLine() {
|
||||
if (this.orderBy === 'addedAt') return 'Added ' + this.$formatDate(this._audiobook.addedAt)
|
||||
if (this.orderBy === 'duration') return 'Duration: ' + this.$elapsedPrettyExtended(this._audiobook.duration, false)
|
||||
if (this.orderBy === 'size') return 'Size: ' + this.$bytesPretty(this._audiobook.size)
|
||||
if (this.orderBy === 'duration') return 'Duration: ' + this.$elapsedPrettyExtended(this._audiobook.duration, false)
|
||||
if (this.orderBy === 'size') return 'Size: ' + this.$bytesPretty(this._audiobook.size)
|
||||
return null
|
||||
},
|
||||
userProgress() {
|
||||
|
Loading…
Reference in New Issue
Block a user