mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 18:15:01 +02:00
Update:Show loading indicator on play buttons when starting playback
This commit is contained in:
parent
efc6d68403
commit
e1c02ce74c
14 changed files with 172 additions and 33 deletions
|
@ -232,6 +232,10 @@ export default {
|
|||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
playerIsStartingPlayback() {
|
||||
// Play has been pressed and waiting for native play response
|
||||
return this.$store.state.playerIsStartingPlayback
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -279,7 +283,9 @@ export default {
|
|||
this.showDialog = true
|
||||
},
|
||||
async play() {
|
||||
if (this.playerIsStartingPlayback) return
|
||||
await this.$hapticsImpact()
|
||||
this.$store.commit('setPlayerIsStartingPlayback', this.localLibraryItemId)
|
||||
this.$eventBus.$emit('play-item', { libraryItemId: this.localLibraryItemId })
|
||||
},
|
||||
getCapImageSrc(contentUrl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue