diff --git a/src/client/pages/my-groups/index.vue b/src/client/pages/my-groups/index.vue index 9f51e5132..c41139164 100644 --- a/src/client/pages/my-groups/index.vue +++ b/src/client/pages/my-groups/index.vue @@ -17,7 +17,7 @@ - +
{{ invite.group.name }}
@@ -31,7 +31,7 @@ - +
{{ group.name }}
@@ -95,6 +95,25 @@ export default Vue.extend({ iconOnly: true, autoClose: true }); }, + acceptInvite(invite) { + this.$root.api('users/groups/invitations/accept', { + inviteId: invite.id + }).then(() => { + this.$root.dialog({ + type: 'success', + iconOnly: true, autoClose: true + }); + this.$refs.invites.reload(); + this.$refs.joined.reload(); + }); + }, + rejectInvite(invite) { + this.$root.api('users/groups/invitations/reject', { + inviteId: invite.id + }).then(() => { + this.$refs.invites.reload(); + }); + } } });