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
This commit is contained in:
Shpuld Shpludson 2017-12-07 22:00:30 +00:00
commit 389c413357
1 changed files with 1 additions and 1 deletions

View File

@ -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}'>