diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-08-05 16:07:20 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-08-05 16:07:20 -0400 |
commit | 7d40748d01c931cc29abf47ede2457376a007930 (patch) | |
tree | 6338c15f4e3e459a5ca8e8fb85bae82e75fefc99 /web/react/components | |
parent | e6f8fa0fa7b49be202c5143f361432d597f5fd61 (diff) | |
download | chat-7d40748d01c931cc29abf47ede2457376a007930.tar.gz chat-7d40748d01c931cc29abf47ede2457376a007930.tar.bz2 chat-7d40748d01c931cc29abf47ede2457376a007930.zip |
Added ShowTermsDuringSignup config option on the client which toggles the Terms of Service disclaimer on signup
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/signup_user_complete.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/signup_user_complete.jsx b/web/react/components/signup_user_complete.jsx index a296345b1..b21553d8a 100644 --- a/web/react/components/signup_user_complete.jsx +++ b/web/react/components/signup_user_complete.jsx @@ -166,6 +166,11 @@ module.exports = React.createClass({ ); } + var termsDisclaimer = null; + if (config.ShowTermsDuringSignup) { + termsDisclaimer = <p>By creating an account and using Mattermost you are agreeing to our <a href={config.TermsLink}>Terms of Service</a>. If you do not agree, you cannot use this service.</p>; + } + return ( <div> <form> @@ -196,7 +201,7 @@ module.exports = React.createClass({ </div> <p className='margin--extra'><button type='submit' onClick={this.handleSubmit} className='btn-primary btn'>Create Account</button></p> {serverError} - <p>By creating an account and using Mattermost you are agreeing to our <a href={ config.TermsLink }>Terms of Service</a>. If you do not agree, you cannot use this service.</p> + {termsDisclaimer} </form> </div> ); |