From a982af771b1a3cdbb8444145342348aa6fb3b961 Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Thu, 16 Jun 2022 10:42:45 +0300 Subject: [PATCH] Display list title --- src/components/timeline_menu/timeline_menu.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index bab51e75..74046d12 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -26,7 +26,8 @@ const TimelineMenu = { }, data () { return { - isOpen: false + isOpen: false, + listTitle: null } }, created () { @@ -58,6 +59,11 @@ const TimelineMenu = { if (route === 'tag-timeline') { return '#' + this.$route.params.tag } + if (route === 'list-timeline') { + this.$store.state.api.backendInteractor.getList({ id: this.$route.params.id }) + .then((data) => { this.listTitle = data.title }) + return this.listTitle + } const i18nkey = timelineNames()[this.$route.name] return i18nkey ? this.$t(i18nkey) : route }