From 66f538783bfbcb0814bcc7dff3697e84e8554649 Mon Sep 17 00:00:00 2001
From: Ryan Wang <R-Wang97@users.noreply.github.com>
Date: Thu, 27 Apr 2017 09:40:11 -0400
Subject: Create seperate field for current email (#6197)

---
 .../user_settings_general.jsx                      | 23 +++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

(limited to 'webapp/components/user_settings/user_settings_general/user_settings_general.jsx')

diff --git a/webapp/components/user_settings/user_settings_general/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general/user_settings_general.jsx
index 79132d929..58f718549 100644
--- a/webapp/components/user_settings/user_settings_general/user_settings_general.jsx
+++ b/webapp/components/user_settings/user_settings_general/user_settings_general.jsx
@@ -365,7 +365,8 @@ class UserSettingsGeneralTab extends React.Component {
             lastName: user.last_name,
             nickname: user.nickname,
             position: user.position,
-            email: user.email,
+            originalEmail: user.email,
+            email: '',
             confirmEmail: '',
             picture: null,
             loadingPicture: false,
@@ -423,13 +424,29 @@ class UserSettingsGeneralTab extends React.Component {
             let submit = null;
 
             if (this.props.user.auth_service === '') {
+                inputs.push(
+                    <div key='currentEmailSetting'>
+                        <div className='form-group'>
+                            <label className='col-sm-5 control-label'>
+                                <FormattedMessage
+                                    id='user.settings.general.currentEmail'
+                                    defaultMessage='Current Email'
+                                />
+                            </label>
+                            <div className='col-sm-7'>
+                                <label className='control-label'>{this.state.originalEmail}</label>
+                            </div>
+                        </div>
+                    </div>
+                );
+
                 inputs.push(
                     <div key='emailSetting'>
                         <div className='form-group'>
                             <label className='col-sm-5 control-label'>
                                 <FormattedMessage
-                                    id='user.settings.general.primaryEmail'
-                                    defaultMessage='Primary Email'
+                                    id='user.settings.general.newEmail'
+                                    defaultMessage='New Email'
                                 />
                             </label>
                             <div className='col-sm-7'>
-- 
cgit v1.2.3-1-g7c22

