basic version done, needs cleanup from nav panel styles
This commit is contained in:
parent
e1cf6bd41c
commit
961099d34a
5 changed files with 104 additions and 22 deletions
30
src/components/timeline_menu/timeline_menu.js
Normal file
30
src/components/timeline_menu/timeline_menu.js
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue