diff options
| author | William Pitcock <nenolod@dereferenced.org> | 2018-06-07 00:58:44 +0000 |
|---|---|---|
| committer | William Pitcock <nenolod@dereferenced.org> | 2018-06-07 00:58:44 +0000 |
| commit | f3a27764aaf31a434c3f858668aa97e6c7328011 (patch) | |
| tree | 8099e07568b381d31e5a3829f973f64dff6dea83 /src/components/user_card/user_card.js | |
| parent | b8d0a6a0baba2fa560cdb3a13ca8135eba7d2255 (diff) | |
add follow requests UI
Diffstat (limited to 'src/components/user_card/user_card.js')
| -rw-r--r-- | src/components/user_card/user_card.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index a7a871c3..f47df0eb 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -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) } } } |
