feat: Make event title clickable on cards

Use a router link to generate a link to event main page.

See issue: #291
This commit is contained in:
Leo Mouyna 2019-12-11 20:50:44 +01:00
parent 1eeabe96bf
commit 675d0a63c3

View File

@ -58,7 +58,7 @@ export default {
<div class="date-component"> <div class="date-component">
<date-calendar-icon :date="participation.event.beginsOn" /> <date-calendar-icon :date="participation.event.beginsOn" />
</div> </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>
<div class="participation-actor has-text-grey"> <div class="participation-actor has-text-grey">
<span v-if="participation.event.physicalAddress && participation.event.physicalAddress.locality">{{ participation.event.physicalAddress.locality }} - </span> <span v-if="participation.event.physicalAddress && participation.event.physicalAddress.locality">{{ participation.event.physicalAddress.locality }} - </span>