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