forked from AkkomaGang/akkoma-fe
20 lines
522 B
JavaScript
20 lines
522 B
JavaScript
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
|
|
|
const FollowRequestCard = {
|
|
props: ['user'],
|
|
components: {
|
|
BasicUserCard
|
|
},
|
|
methods: {
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
|
|
export default FollowRequestCard
|