mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 09:44:41 +02:00
Fix:Accounts user page fix cover images
This commit is contained in:
parent
1463af28ce
commit
6160da475f
2 changed files with 12 additions and 1 deletions
|
@ -103,7 +103,14 @@ export default {
|
|||
return this.$store.getters['users/getIsUserOnline'](this.user.id)
|
||||
},
|
||||
userAudiobooks() {
|
||||
return Object.values(this.user.audiobooks || {}).sort((a, b) => b.lastUpdate - a.lastUpdate)
|
||||
return Object.values(this.user.audiobooks || {})
|
||||
.map((uab) => {
|
||||
return {
|
||||
id: uab.audiobookId,
|
||||
...uab
|
||||
}
|
||||
})
|
||||
.sort((a, b) => b.lastUpdate - a.lastUpdate)
|
||||
},
|
||||
totalListeningTime() {
|
||||
return this.listeningStats.totalTime || 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue