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