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