gancio-upstream/components/Announcement.vue
2021-05-31 00:08:13 +02:00

15 lines
365 B
Vue

<template lang="pug">
nuxt-link(:to='`/announcement/${announcement.id}`')
v-alert.mb-1(border='left' type='info' color="primary" show-icon) {{announcement.title}}
</template>
<script>
import { mapState } from 'vuex'
export default {
props: {
announcement: { type: Object, default: () => ({}) }
},
computed: mapState(['announcements'])
}
</script>