FIX: clicking on number should open user drawer
This commit is contained in:
parent
f9f52e3edc
commit
202e30097f
|
@ -20,6 +20,13 @@ const HeaderController = Ember.Controller.extend({
|
|||
|
||||
|
||||
actions: {
|
||||
showUserMenu() {
|
||||
if (!this.get('userMenuVisible')) {
|
||||
this.appEvents.trigger('dropdowns:closeAll');
|
||||
this.set('userMenuVisible', true);
|
||||
}
|
||||
},
|
||||
|
||||
fullPageSearch() {
|
||||
const searchService = this.container.lookup('search-service:main');
|
||||
const context = searchService.get('searchContext');
|
||||
|
|
|
@ -46,10 +46,10 @@
|
|||
loginAction="showLogin"
|
||||
title="user.avatar.header_title"}}
|
||||
{{#if currentUser.unread_notifications}}
|
||||
<a href="#" class='badge-notification unread-notifications'>{{currentUser.unread_notifications}}</a>
|
||||
<a href="#" {{action "showUserMenu"}} class='badge-notification unread-notifications'>{{currentUser.unread_notifications}}</a>
|
||||
{{/if}}
|
||||
{{#if currentUser.unread_private_messages}}
|
||||
<a href="#" class='badge-notification unread-private-messages'>{{currentUser.unread_private_messages}}</a>
|
||||
<a href="#" {{action "showUserMenu"}} class='badge-notification unread-private-messages'>{{currentUser.unread_private_messages}}</a>
|
||||
{{/if}}
|
||||
{{/header-dropdown}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue