2016-11-27 19:44:56 +01:00
|
|
|
<template>
|
|
|
|
<div class="notifications">
|
2018-03-31 20:14:36 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2017-03-07 14:55:00 +01:00
|
|
|
<span class="unseen-count" v-if="unseenCount">{{unseenCount}}</span>
|
2017-11-07 15:14:37 +01:00
|
|
|
{{$t('notifications.notifications')}}
|
2018-03-31 20:14:36 +02:00
|
|
|
<button v-if="unseenCount" @click.prevent="markAsSeen" class="read-button">{{$t('notifications.read')}}</button>
|
2017-02-24 17:53:53 +01:00
|
|
|
</div>
|
2018-03-31 20:14:36 +02:00
|
|
|
<div class="panel-body">
|
2017-06-02 17:04:59 +02:00
|
|
|
<div v-for="notification in visibleNotifications" :key="notification" class="notification" :class='{"unseen": !notification.seen}'>
|
2018-04-09 19:44:37 +02:00
|
|
|
<notification :notification="notification"></notification>
|
2016-11-27 19:44:56 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./notifications.js"></script>
|
|
|
|
<style lang="scss" src="./notifications.scss"></style>
|