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