2018-03-12 14:35:31 +01:00
|
|
|
<template>
|
|
|
|
<div id="notifications">
|
|
|
|
<div class="notifications" v-for="message in notifications" v-bind:key="message.id">
|
|
|
|
<notification :message="message"></notification>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapState } from 'vuex'
|
|
|
|
import Notification from './Cards/Notification'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'notifications',
|
|
|
|
components: { Notification },
|
2018-03-26 14:49:10 +02:00
|
|
|
mounted () {
|
|
|
|
this.$store.commit('TimelineSpace/SideMenu/changeUnreadNotifications', false)
|
|
|
|
},
|
2018-03-12 14:35:31 +01:00
|
|
|
computed: {
|
|
|
|
...mapState({
|
|
|
|
notifications: state => state.TimelineSpace.notifications
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|