From 34de776798486161e49e195722aa88288dbb4715 Mon Sep 17 00:00:00 2001 From: SebastianKrupinski Date: Wed, 24 Jul 2024 18:48:03 -0400 Subject: [PATCH] fix: enable attendee selection on shared calendars Signed-off-by: SebastianKrupinski --- src/components/Editor/Invitees/InviteesList.vue | 15 ++++----------- src/mixins/EditorMixin.js | 12 ------------ src/views/EditSidebar.vue | 1 - 3 files changed, 4 insertions(+), 24 deletions(-) diff --git a/src/components/Editor/Invitees/InviteesList.vue b/src/components/Editor/Invitees/InviteesList.vue index 2a0d51655..0b201c610 100644 --- a/src/components/Editor/Invitees/InviteesList.vue +++ b/src/components/Editor/Invitees/InviteesList.vue @@ -11,17 +11,17 @@ {{ statusHeader }} - @@ -29,7 +29,7 @@ class="invitees-list__more"> {{ n('calendar', '%n more guest', '%n more guests', inviteesWithoutOrganizer.length - limit) }} - @@ -106,10 +106,6 @@ export default { type: Object, required: true, }, - isSharedWithMe: { - type: Boolean, - required: true, - }, showHeader: { type: Boolean, required: true, @@ -144,9 +140,6 @@ export default { noInviteesMessage() { return this.$t('calendar', 'No attendees yet') }, - noOwnerMessage() { - return this.$t('calendar', 'You do not own this calendar, so you cannot add attendees to this event') - }, invitees() { return this.calendarObjectInstance.attendees.filter(attendee => { return !['RESOURCE', 'ROOM'].includes(attendee.attendeeProperty.userType) diff --git a/src/mixins/EditorMixin.js b/src/mixins/EditorMixin.js index fbc1488b8..c5bd95bf1 100644 --- a/src/mixins/EditorMixin.js +++ b/src/mixins/EditorMixin.js @@ -196,18 +196,6 @@ export default { return calendar.readOnly }, - isSharedWithMe() { - if (!this.calendarObject) { - return true - } - - const calendar = this.calendarsStore.getCalendarById(this.calendarObject.calendarId) - if (!calendar) { - return true - } - - return calendar.isSharedWithMe - }, /** * Returns whether the user is an attendee of the event * diff --git a/src/views/EditSidebar.vue b/src/views/EditSidebar.vue index 9ca438fa1..03414f43a 100644 --- a/src/views/EditSidebar.vue +++ b/src/views/EditSidebar.vue @@ -223,7 +223,6 @@