mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-06-26 15:18:42 +02:00
Add:Podcast episode table sort options #376
This commit is contained in:
parent
1b47c38efa
commit
83a4474375
2 changed files with 39 additions and 8 deletions
|
@ -22,7 +22,8 @@ export default {
|
|||
props: {
|
||||
value: Boolean,
|
||||
orderBy: String,
|
||||
descending: Boolean
|
||||
descending: Boolean,
|
||||
episodes: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -89,6 +90,24 @@ export default {
|
|||
text: 'File Modified',
|
||||
value: 'mtimeMs'
|
||||
}
|
||||
],
|
||||
episodeItems: [
|
||||
{
|
||||
text: 'Pub Date',
|
||||
value: 'publishedAt'
|
||||
},
|
||||
{
|
||||
text: 'Title',
|
||||
value: 'title'
|
||||
},
|
||||
{
|
||||
text: 'Season',
|
||||
value: 'season'
|
||||
},
|
||||
{
|
||||
text: 'Episode',
|
||||
value: 'episode'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -121,6 +140,7 @@ export default {
|
|||
return this.$store.getters['libraries/getCurrentLibraryMediaType'] === 'podcast'
|
||||
},
|
||||
items() {
|
||||
if (this.episodes) return this.episodeItems
|
||||
if (this.isPodcast) return this.podcastItems
|
||||
return this.bookItems
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue