summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
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