From 2feef8151625d9ba5d9c8b1850679b7fe84af809 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 13 Feb 2020 02:17:54 +0900 Subject: グループ招待の通知とか MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve #5880 Resolve #5927 --- src/client/components/notification.vue | 21 ++++++++++++++++++--- src/client/pages/my-groups/index.vue | 26 +++++++++++++------------- 2 files changed, 31 insertions(+), 16 deletions(-) (limited to 'src/client') diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue index e2a220a074..50aff29dd7 100644 --- a/src/client/components/notification.vue +++ b/src/client/components/notification.vue @@ -6,6 +6,7 @@ + @@ -40,13 +41,14 @@ {{ $t('youGotNewFollower') }}
{{ $t('followRequestAccepted') }} {{ $t('receiveFollowRequest') }}
|
+ {{ $t('groupInvited') }}: {{ notification.invitation.group.name }}
|
@@ -149,7 +164,7 @@ export default Vue.extend({ height: 100%; } - &.follow, &.followRequestAccepted, &.receiveFollowRequest { + &.follow, &.followRequestAccepted, &.receiveFollowRequest, &.groupInvited { padding: 3px; background: #36aed2; } diff --git a/src/client/pages/my-groups/index.vue b/src/client/pages/my-groups/index.vue index c41139164f..9b3acbb3eb 100644 --- a/src/client/pages/my-groups/index.vue +++ b/src/client/pages/my-groups/index.vue @@ -17,13 +17,13 @@ - -
-
{{ invite.group.name }}
-
+ +
+
{{ invitation.group.name }}
+
@@ -73,7 +73,7 @@ export default Vue.extend({ endpoint: 'users/groups/joined', limit: 10, }, - invitePagination: { + invitationPagination: { endpoint: 'i/user-group-invites', limit: 10, }, @@ -95,23 +95,23 @@ export default Vue.extend({ iconOnly: true, autoClose: true }); }, - acceptInvite(invite) { + acceptInvite(invitation) { this.$root.api('users/groups/invitations/accept', { - inviteId: invite.id + invitationId: invitation.id }).then(() => { this.$root.dialog({ type: 'success', iconOnly: true, autoClose: true }); - this.$refs.invites.reload(); + this.$refs.invitations.reload(); this.$refs.joined.reload(); }); }, - rejectInvite(invite) { + rejectInvite(invitation) { this.$root.api('users/groups/invitations/reject', { - inviteId: invite.id + invitationId: invitation.id }).then(() => { - this.$refs.invites.reload(); + this.$refs.invitations.reload(); }); } } -- cgit v1.2.3-freya