mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 05:43:58 +02:00
Check app version, fix close stream bug, show audiobook progress, add toasts
This commit is contained in:
+3
-11
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user