Hide the participation button when event is cancelled

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-11 16:00:59 +02:00
parent 5e7c646225
commit c5b9eac2db

View File

@ -34,7 +34,7 @@
</div>
<div class="event-participation has-text-right" v-if="new Date(endDate) > new Date()">
<participation-button
v-if="currentActor.id && !actorIsOrganizer && !event.draft && (eventCapacityOK || actorIsParticipant)"
v-if="currentActor.id && !actorIsOrganizer && !event.draft && (eventCapacityOK || actorIsParticipant) && event.status !== EventStatus.CANCELLED"
:participation="participations[0]"
:current-actor="currentActor"
@joinEvent="joinEvent"