diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 930f737b..f5f168bc 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -214,10 +214,10 @@ export default defineComponent({ isMonthView(): boolean { if (this.$route.query.sort === 'timeline') return false; + if (this.$route.query.sort === 'album') return true; return ( - this.$route.query.sort === 'album' || - (this.config.sort_album_month && (this.$route.name === 'albums' || this.$route.name === 'album-share')) || - (this.config.sort_folder_month && this.$route.name === 'folders') + (this.config.sort_album_month && (this.routeIsAlbums || this.routeIsAlbumShare)) || + (this.config.sort_folder_month && this.routeIsFolders) ); }, diff --git a/src/mixins/GlobalMixin.ts b/src/mixins/GlobalMixin.ts index d2247703..fe5a8194 100644 --- a/src/mixins/GlobalMixin.ts +++ b/src/mixins/GlobalMixin.ts @@ -46,6 +46,9 @@ export default defineComponent({ routeIsExplore(): boolean { return this.$route.name === 'explore'; }, + routeIsAlbumShare(): boolean { + return this.$route.name === 'album-share'; + }, routeIsPublic(): boolean { return this.$route.name?.endsWith('-share') ?? false; }, diff --git a/src/vue-globals.d.ts b/src/vue-globals.d.ts index d282effa..b7d623cf 100644 --- a/src/vue-globals.d.ts +++ b/src/vue-globals.d.ts @@ -22,6 +22,7 @@ declare module 'vue' { routeIsMap: boolean; routeIsTags: boolean; routeIsExplore: boolean; + routeIsAlbumShare: boolean; routeIsPublic: boolean; } }