Ocelot-Social/webapp/components/Notification.vue
Robert Schäfer afa0153f55 Show post-card in notification et al.
* add notification in seeds
* extremely odd styling - on the index page the notification looks OK,
on the post page, the post card elements appear more densely packed
2019-04-09 20:51:54 +02:00

30 lines
473 B
Vue

<template>
<nuxt-link
:to="{ name: 'post-id-slug', params: { id: post.id, slug: post.slug } }"
>
<hc-post-card :post="post" />
</nuxt-link>
</template>
<script>
import HcPostCard from '~/components/PostCard.vue'
export default {
name: 'HcNotification',
components: {
HcPostCard
},
props: {
notification: {
type: Object,
required: true
}
},
computed: {
post() {
return this.notification.post
}
}
}
</script>