diff --git a/client/components/app/BookShelfToolbar.vue b/client/components/app/BookShelfToolbar.vue index 95e7c378c..01ab4fa78 100644 --- a/client/components/app/BookShelfToolbar.vue +++ b/client/components/app/BookShelfToolbar.vue @@ -274,10 +274,15 @@ export default { isAuthorsPage() { return this.page === 'authors' }, + isAlbumsPage() { + return this.page === 'albums' + }, numShowing() { return this.totalEntities }, entityName() { + if (this.isAlbumsPage) return 'Albums' + if (this.isPodcastLibrary) return this.$strings.LabelPodcasts if (!this.page) return this.$strings.LabelBooks if (this.isSeriesPage) return this.$strings.LabelSeries diff --git a/client/components/cards/LazyAlbumCard.vue b/client/components/cards/LazyAlbumCard.vue new file mode 100644 index 000000000..9b7227953 --- /dev/null +++ b/client/components/cards/LazyAlbumCard.vue @@ -0,0 +1,142 @@ + + + diff --git a/client/mixins/bookshelfCardsHelpers.js b/client/mixins/bookshelfCardsHelpers.js index fc8a41256..22a3556fa 100644 --- a/client/mixins/bookshelfCardsHelpers.js +++ b/client/mixins/bookshelfCardsHelpers.js @@ -3,6 +3,7 @@ import LazyBookCard from '@/components/cards/LazyBookCard' import LazySeriesCard from '@/components/cards/LazySeriesCard' import LazyCollectionCard from '@/components/cards/LazyCollectionCard' import LazyPlaylistCard from '@/components/cards/LazyPlaylistCard' +import LazyAlbumCard from '@/components/cards/LazyAlbumCard' import AuthorCard from '@/components/cards/AuthorCard' export default { @@ -19,6 +20,7 @@ export default { if (this.entityName === 'series') return Vue.extend(LazySeriesCard) if (this.entityName === 'collections') return Vue.extend(LazyCollectionCard) if (this.entityName === 'playlists') return Vue.extend(LazyPlaylistCard) + if (this.entityName === 'albums') return Vue.extend(LazyAlbumCard) if (this.entityName === 'authors') return Vue.extend(AuthorCard) return Vue.extend(LazyBookCard) }, @@ -26,6 +28,7 @@ export default { if (this.entityName === 'series') return 'cards-lazy-series-card' if (this.entityName === 'collections') return 'cards-lazy-collection-card' if (this.entityName === 'playlists') return 'cards-lazy-playlist-card' + if (this.entityName === 'albums') return 'cards-lazy-album-card' if (this.entityName === 'authors') return 'cards-author-card' return 'cards-lazy-book-card' }, diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index e3c76da47..55f74b5c2 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -1,6 +1,6 @@