let's slugifyyyy

This commit is contained in:
les
2021-04-13 18:04:53 +02:00
parent af106787d5
commit 1edf6b1799
4 changed files with 25 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
v-card.h-event.event
nuxt-link(:to='`/event/${event.id}`')
nuxt-link(:to='`/event/${event.slug || event.id}`')
v-img.img(:src="`/media/thumb/${event.image_path || 'logo.svg' }`")
v-icon.float-right.mr-1(v-if='event.parentId' color='success') mdi-repeat
.title.p-name {{event.title}}
@@ -43,4 +43,4 @@ export default {
},
computed: mapState(['settings'])
}
</script>
</script>