commit: 389c413357ffe0a84f71a8283361088f98ffd129
parent: fe269b2cf99b52703d37a76be87a52cdaa0d36ad
Author: Shpuld Shpludson <shp@cock.li>
Date: Thu, 7 Dec 2017 22:00:30 +0000
Merge branch 'fix/hide-read-button' into 'develop'
Don't show "read" button if there are no new notifications.
See merge request pleroma/pleroma-fe!184
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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}'>