diff options
| author | Shpuld Shpludson <shp@cock.li> | 2017-12-07 22:00:30 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2017-12-07 22:00:30 +0000 |
| commit | 389c413357ffe0a84f71a8283361088f98ffd129 (patch) | |
| tree | df686a4da2e4884750d10032df7b8a45c7b8399c | |
| parent | fe269b2cf99b52703d37a76be87a52cdaa0d36ad (diff) | |
| parent | 07354cc45d0399d0465194700454b66e14ce41bb (diff) | |
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
| -rw-r--r-- | src/components/notifications/notifications.vue | 2 |
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}'> |
