summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/signup_user_complete.jsx7
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>
);