FIX: users tab in admin panel doesn’t stay highlighted

This commit is contained in:
Arpit Jalan 2015-01-13 02:03:11 +05:30
parent dba57a4a25
commit bbb23bb736
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
export default Discourse.Route.extend({
redirect: function() {
this.replaceWith('adminUsersList.show', 'active');
}
});

View File

@ -8,7 +8,7 @@
{{#if currentUser.admin}} {{#if currentUser.admin}}
<li>{{#link-to 'adminSiteSettings'}}{{i18n 'admin.site_settings.title'}}{{/link-to}}</li> <li>{{#link-to 'adminSiteSettings'}}{{i18n 'admin.site_settings.title'}}{{/link-to}}</li>
{{/if}} {{/if}}
<li>{{#link-to 'adminUsersList.show' 'active'}}{{i18n 'admin.users.title'}}{{/link-to}}</li> <li>{{#link-to 'adminUsersList'}}{{i18n 'admin.users.title'}}{{/link-to}}</li>
{{#if showBadges}} {{#if showBadges}}
<li>{{#link-to 'adminBadges.index'}}{{i18n 'admin.badges.title'}}{{/link-to}}</li> <li>{{#link-to 'adminBadges.index'}}{{i18n 'admin.badges.title'}}{{/link-to}}</li>
{{/if}} {{/if}}
@ -34,4 +34,3 @@
</div> </div>
</div> </div>
</div> </div>