diff --git a/client/components/app/BookShelfCategorized.vue b/client/components/app/BookShelfCategorized.vue index 52ab20123..2580ca512 100644 --- a/client/components/app/BookShelfCategorized.vue +++ b/client/components/app/BookShelfCategorized.vue @@ -17,7 +17,14 @@
@@ -91,9 +98,24 @@ export default { }, isScanningLibrary() { return !!this.$store.getters['tasks/getRunningLibraryScanTask'](this.currentLibraryId) + }, + viewAllButtonTooltip() { + return this.$strings.ButtonViewAll } }, methods: { + goToShelfFullPage(shelf) { + if (shelf.id === 'recently-added') { + this.$store.dispatch('user/updateUserSettings', { orderBy: 'addedAt', orderDesc: true }) + this.$router.push(`/library/${this.currentLibraryId}/bookshelf`) + } else if (shelf.id === 'recent-series' || shelf.id === 'series') { + this.$store.dispatch('user/updateUserSettings', { seriesSortBy: 'addedAt', seriesSortDesc: true }) + this.$router.push(`/library/${this.currentLibraryId}/bookshelf/series`) + } else if (shelf.id === 'newest-authors' || shelf.id === 'authors') { + this.$store.dispatch('user/updateUserSettings', { authorSortBy: 'addedAt', authorSortDesc: true }) + this.$router.push(`/library/${this.currentLibraryId}/bookshelf/authors`) + } + }, selectEntity({ entity, shiftKey }, shelfIndex) { const shelf = this.shelves[shelfIndex] const entityShelfIndex = shelf.entities.findIndex((ent) => ent.id === entity.id) diff --git a/client/components/app/BookShelfRow.vue b/client/components/app/BookShelfRow.vue index 5f3d85751..cd84767cc 100644 --- a/client/components/app/BookShelfRow.vue +++ b/client/components/app/BookShelfRow.vue @@ -40,7 +40,7 @@

{{ $strings[shelf.labelStringKey] }}

@@ -91,7 +91,7 @@ export default { return this.$store.getters['globals/getIsBatchSelectingMediaItems'] }, isLinkableShelf() { - return ['recently-added', 'recent-series', 'newest-authors'].includes(this.shelf.id) + return ['recently-added', 'recent-series', 'newest-authors', 'series', 'authors'].includes(this.shelf.id) } }, methods: { @@ -99,10 +99,10 @@ export default { if (this.shelf.id === 'recently-added') { this.$store.dispatch('user/updateUserSettings', { orderBy: 'addedAt', orderDesc: true }) this.$router.push(`/library/${this.currentLibraryId}/bookshelf`) - } else if (this.shelf.id === 'recent-series') { + } else if (this.shelf.id === 'recent-series' || this.shelf.id === 'series') { this.$store.dispatch('user/updateUserSettings', { seriesSortBy: 'addedAt', seriesSortDesc: true }) this.$router.push(`/library/${this.currentLibraryId}/bookshelf/series`) - } else if (this.shelf.id === 'newest-authors') { + } else if (this.shelf.id === 'newest-authors' || this.shelf.id === 'authors') { this.$store.dispatch('user/updateUserSettings', { authorSortBy: 'addedAt', authorSortDesc: true }) this.$router.push(`/library/${this.currentLibraryId}/bookshelf/authors`) }