diff --git a/client/components/cards/BookMatchCard.vue b/client/components/cards/BookMatchCard.vue index 1d35ab3b..6d82e4b5 100644 --- a/client/components/cards/BookMatchCard.vue +++ b/client/components/cards/BookMatchCard.vue @@ -1,7 +1,9 @@ - + diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index eb3006ab..72e21eec 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -18,10 +18,7 @@ \ No newline at end of file diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 8ac3fbb6..1dbe1fe1 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -118,7 +118,7 @@ {{ isMissing ? 'Missing' : 'Incomplete' }} - + auto_stories Read @@ -291,11 +291,11 @@ export default { libraryFiles() { return this.libraryItem.libraryFiles || [] }, - ebooks() { - return this.media.ebooks || [] + ebookFile() { + return this.media.ebookFile }, showExperimentalReadAlert() { - return !this.tracks.length && this.ebooks.length && !this.showExperimentalFeatures + return !this.tracks.length && this.ebookFile && !this.showExperimentalFeatures }, description() { return this.mediaMetadata.description || '' diff --git a/client/store/index.js b/client/store/index.js index 0c644400..e07bffc4 100644 --- a/client/store/index.js +++ b/client/store/index.js @@ -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