Skip to content

Commit 22cf55d

Browse files
author
Pedro Aim
committed
fix change recovery email password not showing
1 parent 35e8c18 commit 22cf55d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

email_mailbox/src/components/SettingAccountWrapper.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class SettingAccountWrapper extends Component {
150150
},
151151
changeRecoveryEmailPopupParams: {
152152
isDisabledSubmitButton: true,
153+
recoveryEmailConfirmed: props.recoveryEmailConfirmed,
153154
recoveryEmailInput: {
154155
name: 'recoveryEmailInput',
155156
type: 'text',
@@ -470,6 +471,8 @@ class SettingAccountWrapper extends Component {
470471
newState = {
471472
changeRecoveryEmailPopupParams: {
472473
isDisabledSubmitButton: true,
474+
recoveryEmailConfirmed: this.state.recoveryEmailParams
475+
.recoveryEmailConfirmed,
473476
recoveryEmailInput: {
474477
name: 'recoveryEmailInput',
475478
type: 'text',
@@ -1405,6 +1408,10 @@ class SettingAccountWrapper extends Component {
14051408
recoveryEmailParams: {
14061409
recoveryEmail: recoveryEmail,
14071410
recoveryEmailConfirmed: false
1411+
},
1412+
changeRecoveryEmailPopupParams: {
1413+
...this.state.changeRecoveryEmailPopupParams,
1414+
recoveryEmailConfirmed: false
14081415
}
14091416
});
14101417
};
@@ -1414,6 +1421,10 @@ class SettingAccountWrapper extends Component {
14141421
recoveryEmailParams: {
14151422
...this.state.recoveryEmailParams,
14161423
recoveryEmailConfirmed: true
1424+
},
1425+
changeRecoveryEmailPopupParams: {
1426+
...this.state.changeRecoveryEmailPopupParams,
1427+
recoveryEmailConfirmed: true
14171428
}
14181429
});
14191430
};

email_mailbox/src/components/SettingsPopup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ const SettingsPopup = props => {
103103
recoveryEmailPopupInputPassword={
104104
props.changeRecoveryEmailPopupParams.recoveryEmailPasswordInput
105105
}
106+
recoveryEmailConfirmed={
107+
props.changeRecoveryEmailPopupParams.recoveryEmailConfirmed
108+
}
106109
theme={'dark'}
107110
/>
108111
);

0 commit comments

Comments
 (0)