summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-27 11:40:49 -0700
committerCorey Hulen <corey@hulen.com>2015-10-27 11:40:49 -0700
commite0f69060fa462390779dd7b4cf6b67a12c3974ba (patch)
treeb1ea3f745c2607a0f12eaa0af18db3c4c846ab63 /web/react/components/admin_console/admin_sidebar.jsx
parent4dbde3e1d8f6c6a7087c6af1407140a7b250c8d0 (diff)
parent399e9c6f4bbed7f9eac0a75242ec75e4b0d2bb59 (diff)
downloadchat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.tar.gz
chat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.tar.bz2
chat-e0f69060fa462390779dd7b4cf6b67a12c3974ba.zip
Merge pull request #1190 from mattermost/PLT-25
PLT-25 adding stats to admin console
Diffstat (limited to 'web/react/components/admin_console/admin_sidebar.jsx')
-rw-r--r--web/react/components/admin_console/admin_sidebar.jsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/react/components/admin_console/admin_sidebar.jsx b/web/react/components/admin_console/admin_sidebar.jsx
index b0e01ff17..f2fb1c96d 100644
--- a/web/react/components/admin_console/admin_sidebar.jsx
+++ b/web/react/components/admin_console/admin_sidebar.jsx
@@ -24,7 +24,7 @@ export default class AdminSidebar extends React.Component {
handleClick(name, teamId, e) {
e.preventDefault();
this.props.selectTab(name, teamId);
- history.pushState({name: name, teamId: teamId}, null, `/admin_console/${name}/${teamId || ''}`);
+ history.pushState({name, teamId}, null, `/admin_console/${name}/${teamId || ''}`);
}
isSelected(name, teamId) {
@@ -121,6 +121,15 @@ export default class AdminSidebar extends React.Component {
{'- Users'}
</a>
</li>
+ <li>
+ <a
+ href='#'
+ className={this.isSelected('team_analytics', team.id)}
+ onClick={this.handleClick.bind(this, 'team_analytics', team.id)}
+ >
+ {'- Statistics'}
+ </a>
+ </li>
</ul>
</li>
</ul>