From 25bdbd7ae07981e20fd6c6d47768ef7d63549310 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Feb 2020 03:40:09 +0900 Subject: [PATCH] Fix #5886 --- src/client/pages/my-groups/index.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/client/pages/my-groups/index.vue b/src/client/pages/my-groups/index.vue index 9f51e5132b..c41139164f 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(); + }); + } } });