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
|
@ -7,6 +7,8 @@ export const state = () => ({
|
|||
currentPlaybackSession: null,
|
||||
playerIsPlaying: false,
|
||||
playerIsFullscreen: false,
|
||||
playerIsStartingPlayback: false, // When pressing play before native play response
|
||||
playerStartingPlaybackMediaId: null,
|
||||
isCasting: false,
|
||||
isCastAvailable: false,
|
||||
attemptingConnection: false,
|
||||
|
@ -131,6 +133,14 @@ export const mutations = {
|
|||
setPlayerFullscreen(state, val) {
|
||||
state.playerIsFullscreen = val
|
||||
},
|
||||
setPlayerIsStartingPlayback(state, mediaId) {
|
||||
state.playerStartingPlaybackMediaId = mediaId
|
||||
state.playerIsStartingPlayback = true
|
||||
},
|
||||
setPlayerDoneStartingPlayback(state) {
|
||||
state.playerStartingPlaybackMediaId = null
|
||||
state.playerIsStartingPlayback = false
|
||||
},
|
||||
setHasStoragePermission(state, val) {
|
||||
state.hasStoragePermission = val
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue