Update sorting/filtering for podcasts, show sort line on bookshelf list view, update podcast episode UI

This commit is contained in:
advplyr 2022-04-12 18:40:35 -05:00
parent eed8a29c9b
commit 021538820a
8 changed files with 81 additions and 16 deletions

View file

@ -26,7 +26,7 @@ export default {
},
data() {
return {
items: [
bookItems: [
{
text: 'Title',
value: 'media.metadata.title'
@ -47,6 +47,32 @@ export default {
text: 'Size',
value: 'size'
}
],
podcastItems: [
{
text: 'Title',
value: 'media.metadata.title'
},
{
text: 'Author',
value: 'media.metadata.author'
},
{
text: 'Added At',
value: 'addedAt'
},
{
text: 'Size',
value: 'size'
},
{
text: 'File Birthtime',
value: 'birthtimeMs'
},
{
text: 'File Modified',
value: 'mtimeMs'
}
]
}
},
@ -74,6 +100,13 @@ export default {
set(val) {
this.$emit('update:descending', val)
}
},
isPodcast() {
return this.$store.getters['libraries/getCurrentLibraryMediaType'] === 'podcast'
},
items() {
if (this.isPodcast) return this.podcastItems
return this.bookItems
}
},
methods: {