summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-08-08 15:07:34 -0500
committerElias Nahum <nahumhbl@gmail.com>2016-08-08 15:07:34 -0500
commit415145d62fd5195fc03759b5b4ed42c255529d7b (patch)
tree11e7149396fdbff3efc6c06c536ada1f2a89bd64 /webapp/components/admin_console/admin_sidebar.jsx
parent5e2b4d1282dc374b54ca2c77fbf84c6533ce8519 (diff)
parent09d98b486e8245ae84a452331e36e2978a6d01ab (diff)
downloadchat-415145d62fd5195fc03759b5b4ed42c255529d7b.tar.gz
chat-415145d62fd5195fc03759b5b4ed42c255529d7b.tar.bz2
chat-415145d62fd5195fc03759b5b4ed42c255529d7b.zip
Merge branch 'release-3.3'
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar.jsx')
-rw-r--r--webapp/components/admin_console/admin_sidebar.jsx33
1 files changed, 20 insertions, 13 deletions
diff --git a/webapp/components/admin_console/admin_sidebar.jsx b/webapp/components/admin_console/admin_sidebar.jsx
index 3966f0219..4fcfe2731 100644
--- a/webapp/components/admin_console/admin_sidebar.jsx
+++ b/webapp/components/admin_console/admin_sidebar.jsx
@@ -323,6 +323,25 @@ export default class AdminSidebar extends React.Component {
);
}
+ let otherCategory = null;
+ if (license || audits) {
+ otherCategory = (
+ <AdminSidebarCategory
+ parentLink='/admin_console'
+ icon='fa-wrench'
+ title={
+ <FormattedMessage
+ id='admin.sidebar.other'
+ defaultMessage='OTHER'
+ />
+ }
+ >
+ {license}
+ {audits}
+ </AdminSidebarCategory>
+ );
+ }
+
return (
<div className='admin-sidebar'>
<AdminSidebarHeader/>
@@ -347,7 +366,6 @@ export default class AdminSidebar extends React.Component {
/>
}
/>
- {audits}
<AdminSidebarSection
name='logs'
title={
@@ -675,18 +693,7 @@ export default class AdminSidebar extends React.Component {
</AdminSidebarSection>
</AdminSidebarCategory>
{this.renderTeams()}
- <AdminSidebarCategory
- parentLink='/admin_console'
- icon='fa-wrench'
- title={
- <FormattedMessage
- id='admin.sidebar.other'
- defaultMessage='OTHER'
- />
- }
- >
- {license}
- </AdminSidebarCategory>
+ {otherCategory}
</ul>
</div>
<SelectTeamModal