Add:Ebook files table and supplementary ereader

This commit is contained in:
advplyr 2023-06-11 13:36:19 -05:00
parent 543ac209e4
commit d8bc26f5f8
16 changed files with 1283 additions and 638 deletions

View file

@ -123,6 +123,8 @@
<tables-tracks-table v-if="numTracks" :tracks="tracks" :library-item-id="libraryItemId" />
<tables-ebook-files-table v-if="ebookFiles.length" :library-item="libraryItem" />
<!-- modals -->
<modals-select-local-folder-modal v-model="showSelectLocalFolder" :media-type="mediaType" @select="selectedLocalFolder" />
@ -359,6 +361,12 @@ export default {
if (this.isPodcast || this.hasLocal) return false
return this.user && this.userCanDownload && (this.showPlay || (this.showRead && !this.isIos))
},
libraryFiles() {
return this.libraryItem.libraryFiles || []
},
ebookFiles() {
return this.libraryFiles.filter((lf) => lf.fileType === 'ebook')
},
ebookFile() {
return this.media.ebookFile
},