diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index 42a3be4e..a6d79c32 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -76,6 +76,10 @@ + +
+ {{ ebookFormat }} +
@@ -221,7 +225,7 @@ export default { libraryId() { return this._libraryItem.libraryId }, - hasEbook() { + ebookFormat() { return this.media.ebookFormat }, numTracks() { @@ -360,13 +364,13 @@ export default { return this.store.getters['getIsStreamingFromDifferentLibrary'] }, showReadButton() { - return !this.isSelectionMode && !this.showPlayButton && this.hasEbook && (this.showExperimentalFeatures || this.enableEReader) + return !this.isSelectionMode && !this.showPlayButton && this.ebookFormat && (this.showExperimentalFeatures || this.enableEReader) }, showPlayButton() { return !this.isSelectionMode && !this.isMissing && !this.isInvalid && !this.isStreaming && (this.numTracks || this.recentEpisode || this.isMusic) }, showSmallEBookIcon() { - return !this.isSelectionMode && this.hasEbook && (this.showExperimentalFeatures || this.enableEReader) + return !this.isSelectionMode && this.ebookFormat && (this.showExperimentalFeatures || this.enableEReader) }, isMissing() { return this._libraryItem.isMissing @@ -865,7 +869,8 @@ export default { this.createMoreMenu() }, async clickReadEBook() { - var libraryItem = await this.$axios.$get(`/api/items/${this.libraryItemId}?expanded=1`).catch((error) => { + const axios = this.$axios || this.$nuxt.$axios + var libraryItem = await axios.$get(`/api/items/${this.libraryItemId}?expanded=1`).catch((error) => { console.error('Failed to get lirbary item', this.libraryItemId) return null }) diff --git a/client/components/readers/PdfReader.vue b/client/components/readers/PdfReader.vue index 09a03610..89d7e45a 100644 --- a/client/components/readers/PdfReader.vue +++ b/client/components/readers/PdfReader.vue @@ -19,7 +19,7 @@
{{ Math.floor(loadedRatio * 100) }}%
- +
@@ -30,14 +30,18 @@