Merge branch 'issue-388-request-count-broken' into 'develop'

#388: get follow request on a real-time basis

Closes #388

See merge request pleroma/pleroma-fe!619
This commit is contained in:
Shpuld Shpludson 2019-03-01 18:03:30 +00:00
commit 53e104dc32
6 changed files with 41 additions and 13 deletions

View file

@ -4,19 +4,10 @@ const FollowRequests = {
components: {
FollowRequestCard
},
created () {
this.updateRequests()
},
computed: {
requests () {
return this.$store.state.api.followRequests
}
},
methods: {
updateRequests () {
this.$store.state.api.backendInteractor.fetchFollowRequests()
.then((requests) => { this.$store.commit('setFollowRequests', requests) })
}
}
}