add follow requests UI

This commit is contained in:
William Pitcock 2018-06-07 00:58:44 +00:00
parent b8d0a6a0ba
commit f3a27764aa
7 changed files with 61 additions and 3 deletions

View file

@ -3,7 +3,8 @@ import UserCardContent from '../user_card_content/user_card_content.vue'
const UserCard = {
props: [
'user',
'showFollows'
'showFollows',
'showApproval'
],
data () {
return {
@ -16,6 +17,12 @@ const UserCard = {
methods: {
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
},
approveUser () {
this.$store.state.api.backendInteractor.approveUser(this.user.id)
},
denyUser () {
this.$store.state.api.backendInteractor.denyUser(this.user.id)
}
}
}