Fix mobile ereader for new data model

This commit is contained in:
advplyr 2022-04-16 06:10:10 -05:00
parent 066050700c
commit 6cea0ba03d
5 changed files with 60 additions and 45 deletions

View file

@ -11,7 +11,7 @@ export const state = () => ({
networkConnectionType: null,
isFirstLoad: true,
hasStoragePermission: false,
selectedBook: null,
selectedLibraryItem: null,
showReader: false,
showSideDrawer: false,
isNetworkListenerInit: false,
@ -91,8 +91,8 @@ export const mutations = {
state.networkConnected = val.connected
state.networkConnectionType = val.connectionType
},
openReader(state, audiobook) {
state.selectedBook = audiobook
openReader(state, libraryItem) {
state.selectedLibraryItem = libraryItem
state.showReader = true
},
setShowReader(state, val) {