From 7d40748d01c931cc29abf47ede2457376a007930 Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Wed, 5 Aug 2015 16:07:20 -0400
Subject: Added ShowTermsDuringSignup config option on the client which toggles
 the Terms of Service disclaimer on signup

---
 web/react/components/signup_user_complete.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'web/react/components/signup_user_complete.jsx')

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>
         );
-- 
cgit v1.2.3-1-g7c22

