mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 14:39:00 +00:00
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',
|
||||
|
||||
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', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user