aboutsummaryrefslogtreecommitdiff
path: root/src/components/nav_panel/nav_panel.js
blob: 7f783acbaad15000c16a4cec0f3881ebdeb7d980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const NavPanel = {
  created () {
    if (this.currentUser && this.currentUser.locked) {
      this.$store.dispatch('startFetchingFollowRequest')
    }
  },
  computed: {
    currentUser () {
      return this.$store.state.users.currentUser
    },
    chat () {
      return this.$store.state.chat.channel
    },
    followRequestCount () {
      return this.$store.state.api.followRequests.length
    }
  }
}

export default NavPanel