mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 10:44:32 +02:00
Adding files tables, fixing loading when switching streams
This commit is contained in:
parent
30ca0bb95f
commit
a89d2e71cc
18 changed files with 233 additions and 76 deletions
|
@ -47,7 +47,11 @@
|
|||
<p class="text-sm font-mono">{{ invalidParts.join(', ') }}</p>
|
||||
</div>
|
||||
|
||||
<app-tracks-table :tracks="tracks" :audiobook-id="audiobook.id" class="mt-6" />
|
||||
<tables-tracks-table :tracks="tracks" :audiobook-id="audiobook.id" class="mt-6" />
|
||||
|
||||
<tables-audio-files-table v-if="otherAudioFiles.length" :audiobook-id="audiobook.id" :files="otherAudioFiles" class="mt-6" />
|
||||
|
||||
<tables-other-files-table v-if="otherFiles.length" :audiobook-id="audiobook.id" :files="otherFiles" class="mt-6" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -136,9 +140,20 @@ export default {
|
|||
book() {
|
||||
return this.audiobook.book || {}
|
||||
},
|
||||
otherFiles() {
|
||||
return this.audiobook.otherFiles || []
|
||||
},
|
||||
otherAudioFiles() {
|
||||
return this.audioFiles.filter((af) => {
|
||||
return !this.tracks.find((t) => t.path === af.path)
|
||||
})
|
||||
},
|
||||
tracks() {
|
||||
return this.audiobook.tracks || []
|
||||
},
|
||||
audioFiles() {
|
||||
return this.audiobook.audioFiles || []
|
||||
},
|
||||
description() {
|
||||
return this.book.description || 'No Description'
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue