aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-12-07 23:54:03 +0200
committereal <eal@waifu.club>2017-12-07 23:54:03 +0200
commit07354cc45d0399d0465194700454b66e14ce41bb (patch)
treea4aa1379032fee72e7f5c3e341ad2b3da0c1567e /src
parentf72d6ec83ef753241a9329306c0b3fdf1c3cf534 (diff)
Don't show "read" button if there are no new notifications.
Diffstat (limited to 'src')
-rw-r--r--src/components/notifications/notifications.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue
index 176695b1..b341fcef 100644
--- a/src/components/notifications/notifications.vue
+++ b/src/components/notifications/notifications.vue
@@ -4,7 +4,7 @@
<div class="panel-heading base02-background base04">
<span class="unseen-count" v-if="unseenCount">{{unseenCount}}</span>
{{$t('notifications.notifications')}}
- <button @click.prevent="markAsSeen" class="base04 base02-background read-button">{{$t('notifications.read')}}</button>
+ <button v-if="unseenCount" @click.prevent="markAsSeen" class="base04 base02-background read-button">{{$t('notifications.read')}}</button>
</div>
<div class="panel-body base03-border">
<div v-for="notification in visibleNotifications" :key="notification" class="notification" :class='{"unseen": !notification.seen}'>