mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Fix notifications dropdown closing when unread count is updated
This commit is contained in:
@@ -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')),
|
||||||
|
Reference in New Issue
Block a user