From d2561abd06f9270da330d65d0ccc6c102e13674a Mon Sep 17 00:00:00 2001 From: greta Date: Thu, 3 Jun 2021 11:10:41 +0200 Subject: [PATCH 1/2] Fix status indicator overlapping Signed-off-by: greta --- .../Editor/Invitees/AvatarParticipationStatus.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Editor/Invitees/AvatarParticipationStatus.vue b/src/components/Editor/Invitees/AvatarParticipationStatus.vue index ce94e77d7..9cf74b007 100644 --- a/src/components/Editor/Invitees/AvatarParticipationStatus.vue +++ b/src/components/Editor/Invitees/AvatarParticipationStatus.vue @@ -149,3 +149,10 @@ export default { }, } + From 5e02e688715fc2b88b48e99034af1ef2a53921f3 Mon Sep 17 00:00:00 2001 From: greta Date: Thu, 3 Jun 2021 12:21:56 +0200 Subject: [PATCH 2/2] Add status text Signed-off-by: greta --- .../Invitees/AvatarParticipationStatus.vue | 119 +++++++++--------- .../Editor/Invitees/InviteesListItem.vue | 9 ++ .../Editor/Invitees/OrganizerListItem.vue | 8 ++ 3 files changed, 79 insertions(+), 57 deletions(-) diff --git a/src/components/Editor/Invitees/AvatarParticipationStatus.vue b/src/components/Editor/Invitees/AvatarParticipationStatus.vue index 9cf74b007..16c3d3f24 100644 --- a/src/components/Editor/Invitees/AvatarParticipationStatus.vue +++ b/src/components/Editor/Invitees/AvatarParticipationStatus.vue @@ -21,11 +21,14 @@ --> @@ -68,91 +71,93 @@ export default { }, }, computed: { - tooltip() { - if (this.isViewedByOrganizer && this.attendeeIsOrganizer) { - return null - } + className() { if (this.isResource && this.participationStatus === 'ACCEPTED') { - return this.$t('calendar', '{name} is available.', { - name: this.commonName, - }) + return { + class: ['accepted', 'icon', 'icon-checkmark-white'], + label: t('calendar', 'Available.'), + } } if (this.isResource && this.participationStatus === 'DECLINED') { - return this.$t('calendar', '{name} is not available.', { - name: this.commonName, - }) + return { + class: ['declined', 'icon', 'icon-close-white'], + label: t('calendar', 'Not available.'), + } } if (this.participationStatus === 'ACCEPTED' && this.isViewedByOrganizer) { - return this.$t('calendar', '{name} accepted your invitation.', { - name: this.commonName, - }) + return { + class: ['accepted', 'icon', 'icon-checkmark-white'], + label: t('calendar', 'Invitation accepted.'), + } } if (this.participationStatus === 'ACCEPTED' && !this.isViewedByOrganizer) { - return this.$t('calendar', '{name} accepted {organizerName}\'s invitation.', { - name: this.commonName, - organizerName: this.organizerDisplayName, - }) + return { + class: ['accepted', 'icon', 'icon-checkmark-white'], + label: t('calendar', 'Accepted {organizerName}\'s invitation.', { + organizerName: this.organizerDisplayName, + }), + } } if (this.participationStatus === 'DECLINED' && this.isViewedByOrganizer) { - return this.$t('calendar', '{name} declined your invitation.', { - name: this.commonName, - }) + return { + class: ['declined', 'icon', 'icon-close-white'], + label: t('calendar', 'Invitation declined.'), + } } if (this.participationStatus === 'DECLINED' && !this.isViewedByOrganizer) { - return this.$t('calendar', '{name} declined {organizerName}\'s invitation.', { - name: this.commonName, - organizerName: this.organizerDisplayName, - }) + return { + class: ['declined', 'icon', 'icon-close-white'], + label: t('calendar', 'Declined {organizerName}\'s invitation.', { + organizerName: this.organizerDisplayName, + }), + } } if (this.participationStatus === 'DELEGATED') { - return this.$t('calendar', '{name} has delegated their invitation.', { - name: this.commonName, - }) + return this.$t('calendar', 'Invitation is delegated.') } if (this.participationStatus === 'TENTATIVE') { - return this.$t('calendar', '{name} marked their participation as tentative.', { - name: this.commonName, - }) + return { + class: ['tentative', 'icon', 'icon-checkmark-white'], + label: t('calendar', 'Participation marked as tentative.'), + } } if (this.isViewedByOrganizer) { - return this.$t('calendar', '{name} did not respond to your invitation yet.', { - name: this.commonName, - }) + return { + class: ['no-response', 'icon', 'icon-invitees-no-response-white'], + label: t('calendar', 'Invitation sent'), + } } else { - return this.$t('calendar', '{name} did not respond to {organizerName}\'s invitation yet.', { - name: this.commonName, - organizerName: this.organizerDisplayName, - }) + return { + class: ['no-response', 'icon', 'icon-invitees-no-response-white'], + label: t('calendar', 'Has not responded to {organizerName}\'s invitation yet.', { + organizerName: this.organizerDisplayName, + }), + } } }, - className() { - if (this.participationStatus === 'ACCEPTED') { - return ['accepted', 'icon', 'icon-checkmark-white'] - } - if (this.participationStatus === 'DECLINED') { - return ['declined', 'icon', 'icon-close-white'] - } - if (this.participationStatus === 'TENTATIVE') { - return ['tentative', 'icon', 'icon-checkmark-white'] - } - if (this.participationStatus === 'DELEGATED') { - return ['delegated', 'icon', 'icon-confirm-white'] - } - - return ['no-response', 'icon', 'icon-invitees-no-response-white'] - }, }, } diff --git a/src/components/Editor/Invitees/InviteesListItem.vue b/src/components/Editor/Invitees/InviteesListItem.vue index 6cf4b06f8..3ecfb30ef 100644 --- a/src/components/Editor/Invitees/InviteesListItem.vue +++ b/src/components/Editor/Invitees/InviteesListItem.vue @@ -175,3 +175,12 @@ export default { }, } + + diff --git a/src/components/Editor/Invitees/OrganizerListItem.vue b/src/components/Editor/Invitees/OrganizerListItem.vue index 9781215f6..e8ebb1451 100644 --- a/src/components/Editor/Invitees/OrganizerListItem.vue +++ b/src/components/Editor/Invitees/OrganizerListItem.vue @@ -83,3 +83,11 @@ export default { }, } +