From 06e09a05530699be1319a339d027eb508bf24617 Mon Sep 17 00:00:00 2001
From: doh5 <doo@mattermost.com>
Date: Mon, 3 Apr 2017 21:17:21 +0900
Subject: Add IDs to the Admin Sidebar Section (#5909)

* Add IDs to the Admin Sidebar Section

Under Testing

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx
---
 webapp/components/admin_console/admin_sidebar_section.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'webapp/components/admin_console/admin_sidebar_section.jsx')

diff --git a/webapp/components/admin_console/admin_sidebar_section.jsx b/webapp/components/admin_console/admin_sidebar_section.jsx
index 097907bfa..c15291de9 100644
--- a/webapp/components/admin_console/admin_sidebar_section.jsx
+++ b/webapp/components/admin_console/admin_sidebar_section.jsx
@@ -4,6 +4,7 @@
 import React from 'react';
 
 import {Link} from 'react-router/es6';
+import * as Utils from 'utils/utils.jsx';
 
 export default class AdminSidebarSection extends React.Component {
     static get propTypes() {
@@ -62,6 +63,7 @@ export default class AdminSidebarSection extends React.Component {
 
         let sidebarItem = (
             <Link
+                id={Utils.createSafeId(this.props.name)}
                 className={`${className}-title`}
                 activeClassName={`${className}-title ${className}-title--active`}
                 onlyActiveOnIndex={this.props.onlyActiveOnIndex}
-- 
cgit v1.2.3-1-g7c22

