timeline: allow forcing timeline sorting

pull/465/head
Varun Patil 2023-03-08 16:38:30 -08:00
parent 03dce35da8
commit 85f3810057
1 changed files with 4 additions and 2 deletions

View File

@ -270,12 +270,14 @@ export default defineComponent({
return this.$route.name === "archive";
},
isMonthView(): boolean {
if (this.$route.query.sort === "timeline") return false;
return (
this.$route.query.sort === "album" ||
(this.config_sortAlbumMonth &&
(this.$route.name === "albums" ||
this.$route.name === "album-share")) ||
(this.config_sortFolderMonth && this.$route.name === "folders") ||
this.$route.query.sort === "album"
(this.config_sortFolderMonth && this.$route.name === "folders")
);
},
/** Get view name for dynamic top matter */