UX: hide 'dismiss' in notifications dropdown when there are no unread notifications
This commit is contained in:
parent
4addc5e329
commit
8a7cbeef00
|
@ -93,7 +93,7 @@ createWidget('user-menu-dismiss-link', {
|
||||||
buildKey: () => 'user-menu-dismiss-link',
|
buildKey: () => 'user-menu-dismiss-link',
|
||||||
|
|
||||||
html() {
|
html() {
|
||||||
if (userNotifications.state.notifications.get('length') > 0) {
|
if (userNotifications.state.notifications.filterBy("read", false).length > 0) {
|
||||||
return h('ul.menu-links',
|
return h('ul.menu-links',
|
||||||
h('li',
|
h('li',
|
||||||
this.attach('link', {
|
this.attach('link', {
|
||||||
|
|
Loading…
Reference in New Issue