diff options
Diffstat (limited to 'src/components/timeline_menu/timeline_menu.js')
| -rw-r--r-- | src/components/timeline_menu/timeline_menu.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js new file mode 100644 index 00000000..912dd79a --- /dev/null +++ b/src/components/timeline_menu/timeline_menu.js @@ -0,0 +1,30 @@ +import Popover from '../popover/popover.vue' +import { mapState } from 'vuex' + +const TimelineMenu = { + components: { + Popover + }, + created () { + if (this.currentUser && this.currentUser.locked) { + this.$store.dispatch('startFetchingFollowRequests') + } + }, + computed: { + ...mapState({ + currentUser: state => state.users.currentUser, + privateMode: state => state.instance.private, + federating: state => state.instance.federating + }), + timelineNamesForRoute () { + return { + 'friends': this.$t('nav.timeline'), + 'dms': this.$t('nav.dms'), + 'public-timeline': this.$t('nav.public_tl'), + 'public-external-timeline': this.$t('nav.twkn') + } + } + } +} + +export default TimelineMenu |
