2019-02-26 15:34:24 +11:00
|
|
|
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
|
|
|
|
|
|
|
const FollowRequestCard = {
|
|
|
|
props: ['user'],
|
|
|
|
components: {
|
|
|
|
BasicUserCard
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
approveUser () {
|
2019-11-24 22:57:46 +11:00
|
|
|
this.$store.state.api.backendInteractor.approveUser({ id: this.user.id })
|
2019-02-26 15:34:24 +11:00
|
|
|
this.$store.dispatch('removeFollowRequest', this.user)
|
|
|
|
},
|
|
|
|
denyUser () {
|
2019-11-24 22:57:46 +11:00
|
|
|
this.$store.state.api.backendInteractor.denyUser({ id: this.user.id })
|
2019-02-26 15:34:24 +11:00
|
|
|
this.$store.dispatch('removeFollowRequest', this.user)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FollowRequestCard
|