mattwr18 b79770469f Update notifications page
- display more notifications by simplifying the table
- get sorting working
2019-11-11 08:50:35 +01:00

33 lines
585 B
Vue

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