summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-06-07 14:42:58 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-06-07 17:42:58 -0400
commit52b5db3a0b5d2ed3b96a72d8e8865d61d865320e (patch)
tree098b124db608ca31481a2c09fb9f9b1348d21478 /webapp/components/admin_console
parentc3b3a36dc39659ea4c1eb0abdb347a908fb04bb8 (diff)
downloadchat-52b5db3a0b5d2ed3b96a72d8e8865d61d865320e.tar.gz
chat-52b5db3a0b5d2ed3b96a72d8e8865d61d865320e.tar.bz2
chat-52b5db3a0b5d2ed3b96a72d8e8865d61d865320e.zip
PLT-3215 Moving custom branding in admin console (#3286)
Diffstat (limited to 'webapp/components/admin_console')
-rw-r--r--webapp/components/admin_console/admin_sidebar.jsx27
1 files changed, 17 insertions, 10 deletions
diff --git a/webapp/components/admin_console/admin_sidebar.jsx b/webapp/components/admin_console/admin_sidebar.jsx
index d760e3db9..c947be5cb 100644
--- a/webapp/components/admin_console/admin_sidebar.jsx
+++ b/webapp/components/admin_console/admin_sidebar.jsx
@@ -239,6 +239,22 @@ export default class AdminSidebar extends React.Component {
);
}
+ let customBranding = null;
+
+ if (window.mm_license.IsLicensed === 'true') {
+ customBranding = (
+ <AdminSidebarSection
+ name='custom_brand'
+ title={
+ <FormattedMessage
+ id='admin.sidebar.customBrand'
+ defaultMessage='Custom Branding'
+ />
+ }
+ />
+ );
+ }
+
return (
<div className='admin-sidebar'>
<AdminSidebarHeader/>
@@ -515,16 +531,7 @@ export default class AdminSidebar extends React.Component {
/>
}
>
- <AdminSidebarSection
- name='custom_brand'
- title={
- <FormattedMessage
- id='admin.sidebar.customBrand'
- defaultMessage='Custom Branding'
- />
-
- }
- />
+ {customBranding}
<AdminSidebarSection
name='legal_and_support'
title={