Matt Rider 1930e5bafe Add some component tests, rename files
- with new naming schema
2019-08-08 17:04:23 +02:00

33 lines
568 B
Vue

<template>
<div>
<notification
v-for="notification in notifications"
:key="notification.id"
:notification="notification"
@read="markAsRead(notification.id)"
/>
</div>
</template>
<script>
import Notification from '../Notification/Notification'
export default {
name: 'NotificationList',
components: {
Notification,
},
props: {
notifications: {
type: Array,
required: true,
},
},
methods: {
markAsRead(notificationId) {
this.$emit('markAsRead', notificationId)
},
},
}
</script>