FIX: clicking on number should open user drawer

This commit is contained in:
Sam 2015-09-08 18:01:48 +10:00
parent f9f52e3edc
commit 202e30097f
2 changed files with 9 additions and 2 deletions

View File

@ -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');

View File

@ -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}}