From b0398b55a1b3a787fe8737030f708922f135d831 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 24 Mar 2015 19:55:18 +1030 Subject: [PATCH] Fix user stats not updating when going from one profile to another --- framework/core/ember/app/views/user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/core/ember/app/views/user.js b/framework/core/ember/app/views/user.js index 10036b422..90566ee86 100644 --- a/framework/core/ember/app/views/user.js +++ b/framework/core/ember/app/views/user.js @@ -40,16 +40,16 @@ export default Ember.View.extend(HasItemLists, { items.pushObjectWithTag(NavItem.extend({ label: 'Discussions', icon: 'reorder', - badge: Ember.computed.alias('user.discussionsCount'), - user: this.get('controller.model'), + badge: Ember.computed.alias('controller.model.discussionsCount'), + controller: this.get('controller'), layout: precompileTemplate('{{#link-to "user.activity" (query-params filter="discussions")}}{{fa-icon icon}} {{label}} {{badge}}{{/link-to}}') }), 'discussions'); items.pushObjectWithTag(NavItem.extend({ label: 'Posts', icon: 'comment-o', - badge: Ember.computed.alias('user.commentsCount'), - user: this.get('controller.model'), + badge: Ember.computed.alias('controller.model.commentsCount'), + controller: this.get('controller'), layout: precompileTemplate('{{#link-to "user.activity" (query-params filter="posts")}}{{fa-icon icon}} {{label}} {{badge}}{{/link-to}}') }), 'posts'); }