Set ver, clean up dependencies

This commit is contained in:
advplyr
2021-09-02 12:19:26 -05:00
parent 495af35043
commit 06657538a9
12 changed files with 112 additions and 45 deletions
+14 -4
View File
@@ -3,14 +3,24 @@ export const state = () => ({
streamAudiobook: null,
playOnLoad: false,
serverUrl: null,
user: null
user: null,
currentVersion: null,
latestVersion: null,
hasUpdate: true
})
export const actions = {
}
export const actions = {}
export const mutations = {
setCurrentVersion(state, verObj) {
state.currentVersion = verObj
},
setLatestVersion(state, verObj) {
state.latestVersion = verObj
},
setHasUpdate(state, val) {
state.hasUpdate = val
},
closeStream(state, audiobookId) {
if (state.streamAudiobook && state.streamAudiobook.id !== audiobookId) {
return