mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-09-01 08:07:20 +02:00
Update:Show loading indicator on play buttons when starting playback
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user