From 55e85ac3622076fa65c68436057b5fc78ae9ca0f Mon Sep 17 00:00:00 2001 From: Leo Mouyna <mouynaleo@gmail.com> Date: Wed, 11 Dec 2019 20:50:44 +0100 Subject: [PATCH] feat: Make event title clickable on cards Use a router link to generate a link to event main page. See issue: #291 --- js/src/components/Event/EventListCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/components/Event/EventListCard.vue b/js/src/components/Event/EventListCard.vue index 46115a553..172669650 100644 --- a/js/src/components/Event/EventListCard.vue +++ b/js/src/components/Event/EventListCard.vue @@ -58,7 +58,7 @@ export default { <div class="date-component"> <date-calendar-icon :date="participation.event.beginsOn" /> </div> - <h2 class="title">{{ participation.event.title }}</h2> + <router-link :to="{ name: RouteName.EVENT, params: { uuid: participation.event.uuid } }"><h2 class="title">{{participation.event.title }}</h2></router-link> </div> <div class="participation-actor has-text-grey"> <span v-if="participation.event.physicalAddress && participation.event.physicalAddress.locality">{{ participation.event.physicalAddress.locality }} - </span>