Fix experimental e-reader with new data model

This commit is contained in:
advplyr 2022-04-13 08:26:43 -05:00
parent 88354de495
commit a90cfc4d04
7 changed files with 61 additions and 71 deletions

View file

@ -11,7 +11,6 @@ export const state = () => ({
showEditModal: false,
showEReader: false,
selectedLibraryItem: null,
selectedAudiobookFile: null,
developerMode: false,
selectedLibraryItems: [],
processingBatch: false,
@ -141,13 +140,6 @@ export const mutations = {
state.showEditModal = val
},
showEReader(state, libraryItem) {
state.selectedAudiobookFile = null
state.selectedLibraryItem = libraryItem
state.showEReader = true
},
showEReaderForFile(state, { libraryItem, file }) {
state.selectedAudiobookFile = file
state.selectedLibraryItem = libraryItem
state.showEReader = true