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