mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 03:01:09 +02:00
chat/icon component
This commit is contained in:
@@ -22,7 +22,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
|
||||
return console.warn('Error updating unread count', err);
|
||||
}
|
||||
|
||||
$('#chat-count')
|
||||
components.get('chat/icon')
|
||||
.toggleClass('unread-count', count > 0)
|
||||
.attr('data-content', count > 20 ? '20+' : count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user