From bbb23bb7362b80582339cd4c3ff6aceeb50fd658 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 13 Jan 2015 02:03:11 +0530 Subject: [PATCH] =?UTF-8?q?FIX:=20users=20tab=20in=20admin=20panel=20doesn?= =?UTF-8?q?=E2=80=99t=20stay=20highlighted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../javascripts/admin/routes/admin-users-list-index.js.es6 | 5 +++++ app/assets/javascripts/admin/templates/admin.hbs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 app/assets/javascripts/admin/routes/admin-users-list-index.js.es6 diff --git a/app/assets/javascripts/admin/routes/admin-users-list-index.js.es6 b/app/assets/javascripts/admin/routes/admin-users-list-index.js.es6 new file mode 100644 index 00000000000..c989a677c18 --- /dev/null +++ b/app/assets/javascripts/admin/routes/admin-users-list-index.js.es6 @@ -0,0 +1,5 @@ +export default Discourse.Route.extend({ + redirect: function() { + this.replaceWith('adminUsersList.show', 'active'); + } +}); diff --git a/app/assets/javascripts/admin/templates/admin.hbs b/app/assets/javascripts/admin/templates/admin.hbs index 27f4ec30105..f59f25c4c83 100644 --- a/app/assets/javascripts/admin/templates/admin.hbs +++ b/app/assets/javascripts/admin/templates/admin.hbs @@ -8,7 +8,7 @@ {{#if currentUser.admin}}
  • {{#link-to 'adminSiteSettings'}}{{i18n 'admin.site_settings.title'}}{{/link-to}}
  • {{/if}} -
  • {{#link-to 'adminUsersList.show' 'active'}}{{i18n 'admin.users.title'}}{{/link-to}}
  • +
  • {{#link-to 'adminUsersList'}}{{i18n 'admin.users.title'}}{{/link-to}}
  • {{#if showBadges}}
  • {{#link-to 'adminBadges.index'}}{{i18n 'admin.badges.title'}}{{/link-to}}
  • {{/if}} @@ -34,4 +34,3 @@ -