mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-19 00:58:35 +02:00
Add:Alert when progress is not syncing
This commit is contained in:
parent
bf928692d5
commit
e8cd18eac2
2 changed files with 16 additions and 2 deletions
|
@ -71,7 +71,8 @@ export default {
|
|||
sleepTimerRemaining: 0,
|
||||
sleepTimer: null,
|
||||
displayTitle: null,
|
||||
initialPlaybackRate: 1
|
||||
initialPlaybackRate: 1,
|
||||
syncFailedToast: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -380,6 +381,10 @@ export default {
|
|||
},
|
||||
pauseItem() {
|
||||
this.playerHandler.pause()
|
||||
},
|
||||
showFailedProgressSyncs() {
|
||||
if (!isNaN(this.syncFailedToast)) this.$toast.dismiss(this.syncFailedToast)
|
||||
this.syncFailedToast = this.$toast('Progress is not being synced. Restart playback', { timeout: false, type: 'error' })
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue