yandere_fe/src/components/follow_request_card/follow_request_card.js

21 lines
538 B
JavaScript
Raw Normal View History

2019-02-25 20:34:24 -08:00
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
const FollowRequestCard = {
props: ['user'],
components: {
BasicUserCard
},
methods: {
approveUser () {
this.$store.state.api.backendInteractor.approveUser({ id: this.user.id })
2019-02-25 20:34:24 -08:00
this.$store.dispatch('removeFollowRequest', this.user)
},
denyUser () {
this.$store.state.api.backendInteractor.denyUser({ id: this.user.id })
2019-02-25 20:34:24 -08:00
this.$store.dispatch('removeFollowRequest', this.user)
}
}
}
export default FollowRequestCard