diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-01-04 12:44:22 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-01-14 08:24:09 -0500 |
commit | 9110dd54a15f3d0fcf6f60936e01d816b667b93c (patch) | |
tree | be6ddca1c4dc47b71de4c7ad8af59cb21a594b56 /web/react/components/admin_console/admin_sidebar.jsx | |
parent | 53b0cd8f2a24798c67505aa447b1d53b9f14197e (diff) | |
download | chat-9110dd54a15f3d0fcf6f60936e01d816b667b93c.tar.gz chat-9110dd54a15f3d0fcf6f60936e01d816b667b93c.tar.bz2 chat-9110dd54a15f3d0fcf6f60936e01d816b667b93c.zip |
Added license validation and settings
Diffstat (limited to 'web/react/components/admin_console/admin_sidebar.jsx')
-rw-r--r-- | web/react/components/admin_console/admin_sidebar.jsx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/web/react/components/admin_console/admin_sidebar.jsx b/web/react/components/admin_console/admin_sidebar.jsx index 1279f4d22..5a5eaa055 100644 --- a/web/react/components/admin_console/admin_sidebar.jsx +++ b/web/react/components/admin_console/admin_sidebar.jsx @@ -155,6 +155,36 @@ export default class AdminSidebar extends React.Component { } } + let ldapSettings; + let licenseSettings; + if (global.window.mm_config.BuildEnterpriseReady === 'true') { + if (global.window.mm_license.IsLicensed === 'true') { + ldapSettings = ( + <li> + <a + href='#' + className={this.isSelected('ldap_settings')} + onClick={this.handleClick.bind(this, 'ldap_settings', null)} + > + {'LDAP Settings'} + </a> + </li> + ); + } + + licenseSettings = ( + <li> + <a + href='#' + className={this.isSelected('license')} + onClick={this.handleClick.bind(this, 'license', null)} + > + {'Edition and License'} + </a> + </li> + ); + } + return ( <div className='sidebar--left sidebar--collapsable'> <div> @@ -252,6 +282,7 @@ export default class AdminSidebar extends React.Component { {'GitLab Settings'} </a> </li> + {ldapSettings} <li> <a href='#' @@ -300,6 +331,7 @@ export default class AdminSidebar extends React.Component { </li> </ul> <ul className='nav nav__sub-menu padded'> + {licenseSettings} <li> <a href='#' |