FIX: Group mobile nav not updating.

This commit is contained in:
Guo Xiang Tan 2016-12-21 21:16:52 +08:00
parent a37a6f57d9
commit c897e5599a
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ var Tab = Em.Object.extend({
}); });
export default Ember.Controller.extend({ export default Ember.Controller.extend({
application: Ember.inject.controller(),
counts: null, counts: null,
showing: 'members', showing: 'members',
tabs: [ tabs: [

View File

@ -31,7 +31,7 @@
{{/if}} {{/if}}
</div> </div>
{{#mobile-nav class='group-nav' desktopClass="pull-left nav nav-stacked" currentPath=currentPath}} {{#mobile-nav class='group-nav' desktopClass="pull-left nav nav-stacked" currentPath=application.currentPath}}
{{#each getTabs as |tab|}} {{#each getTabs as |tab|}}
<li class="{{if tab.active 'active'}}"> <li class="{{if tab.active 'active'}}">
{{#link-to tab.location model title=tab.message}} {{#link-to tab.location model title=tab.message}}