UX: hide 'dismiss' in notifications dropdown when there are no unread notifications

This commit is contained in:
Régis Hanol 2017-11-22 15:56:01 +01:00
parent 4addc5e329
commit 8a7cbeef00
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ createWidget('user-menu-dismiss-link', {
buildKey: () => 'user-menu-dismiss-link',
html() {
if (userNotifications.state.notifications.get('length') > 0) {
if (userNotifications.state.notifications.filterBy("read", false).length > 0) {
return h('ul.menu-links',
h('li',
this.attach('link', {