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 534ff09674
commit f475b713a1
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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"