mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
Fix notifications dropdown closing when unread count is updated
This commit is contained in:
parent
efeb236feb
commit
cc73b5fc56
|
@ -19,8 +19,8 @@ export default class UserNotifications extends Component {
|
|||
var user = this.props.user;
|
||||
|
||||
return DropdownButton.component({
|
||||
className: 'notifications'+(user.unreadNotificationsCount() ? ' unread' : ''),
|
||||
buttonClass: 'btn btn-default btn-rounded btn-naked btn-icon',
|
||||
className: 'notifications',
|
||||
buttonClass: 'btn btn-default btn-rounded btn-naked btn-icon'+(user.unreadNotificationsCount() ? ' unread' : ''),
|
||||
menuClass: 'pull-right',
|
||||
buttonContent: [
|
||||
m('span.notifications-icon', user.unreadNotificationsCount() || icon('bell icon-glyph')),
|
||||
|
|
Loading…
Reference in New Issue
Block a user