diff options
Diffstat (limited to 'webapp/components/admin_console')
-rw-r--r-- | webapp/components/admin_console/admin_sidebar.jsx | 27 |
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={ |