mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
33 lines
588 B
Vue
33 lines
588 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,
|
|
default: () => [],
|
|
},
|
|
},
|
|
methods: {
|
|
markAsRead(notificationSourceId) {
|
|
this.$emit('markAsRead', notificationSourceId)
|
|
},
|
|
},
|
|
}
|
|
</script>
|