mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 09:14:40 +02:00
Add: Filter and side rail button to show books with issues #132, Add: realtime updates for audiobook progress
This commit is contained in:
parent
874c910e24
commit
335bbac81d
14 changed files with 96 additions and 30 deletions
|
@ -177,6 +177,9 @@ export default {
|
|||
userStreamUpdate(user) {
|
||||
this.$store.commit('users/updateUser', user)
|
||||
},
|
||||
currentUserAudiobookUpdate(payload) {
|
||||
this.$store.commit('user/updateUserAudiobook', payload)
|
||||
},
|
||||
downloadToastClick(download) {
|
||||
if (!download || !download.audiobookId) {
|
||||
return console.error('Invalid download object', download)
|
||||
|
@ -285,6 +288,7 @@ export default {
|
|||
this.socket.on('user_online', this.userOnline)
|
||||
this.socket.on('user_offline', this.userOffline)
|
||||
this.socket.on('user_stream_update', this.userStreamUpdate)
|
||||
this.socket.on('current_user_audiobook_update', this.currentUserAudiobookUpdate)
|
||||
|
||||
// Scan Listeners
|
||||
this.socket.on('scan_start', this.scanStart)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue