Check app version, fix close stream bug, show audiobook progress, add toasts

This commit is contained in:
Mark Cooper
2021-09-04 12:31:00 -05:00
parent e3712fb87c
commit 9656aeaff8
51 changed files with 551 additions and 141 deletions
+3 -11
View File
@@ -4,22 +4,14 @@ export const state = () => ({
playOnLoad: false,
serverUrl: null,
user: null,
currentVersion: null,
latestVersion: null,
hasUpdate: true
appUpdateInfo: null
})
export const actions = {}
export const mutations = {
setCurrentVersion(state, verObj) {
state.currentVersion = verObj
},
setLatestVersion(state, verObj) {
state.latestVersion = verObj
},
setHasUpdate(state, val) {
state.hasUpdate = val
setAppUpdateInfo(state, info) {
state.appUpdateInfo = info
},
closeStream(state, audiobookId) {
if (state.streamAudiobook && state.streamAudiobook.id !== audiobookId) {