From 549b82c94a017844bae67f08e980a7366825b025 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 3 Aug 2021 15:13:30 +0200 Subject: [PATCH] Remove unused getter Signed-off-by: Thomas Citharel --- js/src/views/Event/Event.vue | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/js/src/views/Event/Event.vue b/js/src/views/Event/Event.vue index 8664ce6aa..69fea48ff 100755 --- a/js/src/views/Event/Event.vue +++ b/js/src/views/Event/Event.vue @@ -1309,29 +1309,6 @@ export default class Event extends EventMixin { } return null; } - - get shouldShowParticipationButton(): boolean { - // So that people can cancel their participation - if ( - this.actorIsParticipant || - (this.config.anonymous.participation.allowed && - this.anonymousParticipation) - ) - return true; - - // You can participate to draft or cancelled events - if (this.event.draft || this.event.status === EventStatus.CANCELLED) - return false; - - // Organizer can't participate - if (this.actorIsOrganizer) return false; - - // If capacity is OK - if (this.eventCapacityOK) return true; - - // Else - return false; - } }