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