mirror of
https://git.rape.pet/ulith/amputoma-fe.git
synced 2025-02-10 15:22:40 +01:00
25 lines
649 B
JavaScript
25 lines
649 B
JavaScript
import followRequestFetcher from '../../services/follow_request_fetcher/follow_request_fetcher.service'
|
|
|
|
const NavPanel = {
|
|
created () {
|
|
if (this.currentUser && this.currentUser.locked) {
|
|
const store = this.$store
|
|
const credentials = store.state.users.currentUser.credentials
|
|
|
|
followRequestFetcher.startFetching({ store, credentials })
|
|
}
|
|
},
|
|
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
|