2019-11-12 07:14:44 +11:00
|
|
|
import { mapState } from 'vuex'
|
2019-02-28 06:38:10 +11:00
|
|
|
|
2016-11-07 06:10:20 +11:00
|
|
|
const NavPanel = {
|
2019-02-28 06:38:10 +11:00
|
|
|
created () {
|
|
|
|
if (this.currentUser && this.currentUser.locked) {
|
2019-11-20 01:07:15 +11:00
|
|
|
this.$store.dispatch('startFetchingFollowRequest')
|
2019-02-28 06:38:10 +11:00
|
|
|
}
|
|
|
|
},
|
2019-11-12 07:14:44 +11:00
|
|
|
computed: mapState({
|
|
|
|
currentUser: state => state.users.currentUser,
|
|
|
|
chat: state => state.chat.channel,
|
2019-11-12 07:18:36 +11:00
|
|
|
followRequestCount: state => state.api.followRequests.length,
|
|
|
|
privateMode: state => state.instance.private,
|
2019-12-13 06:56:07 +11:00
|
|
|
federating: state => state.instance.federationPolicy.enabled
|
2019-11-12 07:14:44 +11:00
|
|
|
})
|
2016-11-07 06:10:20 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
export default NavPanel
|