diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index 6b93f0af0..ea0d9a884 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -62,6 +62,23 @@ const TimelineMenu = { (route === 'bookmark-folder' || route === 'bookmarks') ) }, + timelineName() { + const route = this.$route.name + if (route === 'tag-timeline') { + return '#' + this.$route.params.tag + } + if (route === 'lists-timeline') { + console.log(useListsStore, this.$route.params.id) + return useListsStore().findListTitle(this.$route.params.id) + } + if (route === 'bookmark-folder') { + return useBookmarkFoldersStore().findBookmarkFolderName( + this.$route.params.id, + ) + } + const i18nkey = timelineNames(this.bookmarkFolders)[this.$route.name] + return i18nkey ? this.$t(i18nkey) : route + }, ...mapState(useInstanceCapabilitiesStore, [ 'pleromaChatMessagesAvailable', 'pleromaBookmarkFoldersAvailable', @@ -103,22 +120,6 @@ const TimelineMenu = { event.stopPropagation() } }, - timelineName() { - const route = this.$route.name - if (route === 'tag-timeline') { - return '#' + this.$route.params.tag - } - if (route === 'lists-timeline') { - return useListsStore().findListTitle(this.$route.params.id) - } - if (route === 'bookmark-folder') { - return useBookmarkFoldersStore().findBookmarkFolderName( - this.$route.params.id, - ) - } - const i18nkey = timelineNames(this.bookmarkFolders)[this.$route.name] - return i18nkey ? this.$t(i18nkey) : route - }, }, } diff --git a/src/components/timeline_menu/timeline_menu.vue b/src/components/timeline_menu/timeline_menu.vue index 717c8a8e8..6a56e8741 100644 --- a/src/components/timeline_menu/timeline_menu.vue +++ b/src/components/timeline_menu/timeline_menu.vue @@ -30,7 +30,7 @@