diff options
author | David Lu <david.lu@hotmail.com> | 2016-08-02 08:34:34 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-08-02 08:34:34 -0400 |
commit | 2c23a4fe4907f826013571afdae6db52895f576e (patch) | |
tree | c485d6685570daed65bf956574ee1be9006152bd /webapp/components/admin_console/custom_brand_settings.jsx | |
parent | 42e74b509dc8a1be7798c030b1ad80f6c2755a73 (diff) | |
download | chat-2c23a4fe4907f826013571afdae6db52895f576e.tar.gz chat-2c23a4fe4907f826013571afdae6db52895f576e.tar.bz2 chat-2c23a4fe4907f826013571afdae6db52895f576e.zip |
Added custom branding to login description (#3710)
Diffstat (limited to 'webapp/components/admin_console/custom_brand_settings.jsx')
-rw-r--r-- | webapp/components/admin_console/custom_brand_settings.jsx | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/webapp/components/admin_console/custom_brand_settings.jsx b/webapp/components/admin_console/custom_brand_settings.jsx index b4026c4a9..a54768fb8 100644 --- a/webapp/components/admin_console/custom_brand_settings.jsx +++ b/webapp/components/admin_console/custom_brand_settings.jsx @@ -27,6 +27,7 @@ export default class CustomBrandSettings extends AdminSettings { if (global.window.mm_license.IsLicensed === 'true' && global.window.mm_license.CustomBrand === 'true') { config.TeamSettings.EnableCustomBrand = this.state.enableCustomBrand; config.TeamSettings.CustomBrandText = this.state.customBrandText; + config.TeamSettings.customDescriptionText = this.state.customDescriptionText; } return config; @@ -36,7 +37,8 @@ export default class CustomBrandSettings extends AdminSettings { return { siteName: config.TeamSettings.SiteName, enableCustomBrand: config.TeamSettings.EnableCustomBrand, - customBrandText: config.TeamSettings.CustomBrandText + customBrandText: config.TeamSettings.CustomBrandText, + customDescriptionText: config.TeamSettings.CustomDescriptionText }; } @@ -104,6 +106,30 @@ export default class CustomBrandSettings extends AdminSettings { disabled={!this.state.enableCustomBrand} /> ); + + enterpriseSettings.push( + <TextSetting + key='customDescriptionText' + id='customDescriptionText' + type='textarea' + label={ + <FormattedMessage + id='admin.team.brandDescriptionTitle' + defaultMessage='Site Description' + /> + } + helpText={ + <FormattedMessage + id='admin.team.brandDescriptionHelp' + defaultMessage='Description of service shown in login screens and UI.' + /> + } + value={this.state.customDescriptionText} + placeholder={Utils.localizeMessage('web.root.signup_info', 'All team communication in one place, searchable and accessible anywhere')} + onChange={this.handleChange} + disabled={!this.state.enableCustomBrand} + /> + ); } return ( |