follow requests: refactor to properly leverage vuex

This commit is contained in:
William Pitcock 2018-06-07 01:24:31 +00:00
parent fd25f68741
commit 7389f07115
3 changed files with 23 additions and 8 deletions

View file

@ -20,9 +20,11 @@ const UserCard = {
},
approveUser () {
this.$store.state.api.backendInteractor.approveUser(this.user.id)
this.$store.dispatch('removeFollowRequest', this.user)
},
denyUser () {
this.$store.state.api.backendInteractor.denyUser(this.user.id)
this.$store.dispatch('removeFollowRequest', this.user)
}
}
}