diff --git a/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.ts b/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.ts index 24834916c..4f3b33ff3 100644 --- a/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.ts +++ b/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.ts @@ -141,6 +141,18 @@ export class AccountSettingsModalComponent implements OnInit, AfterViewChecked { this.account = Object.assign({}, this.session.getCurrentUser()); this.formValueChanged = false; + //Confirm inline alert is closed + this.inlineAlert.close(); + + //Clear check history + this.mailAlreadyChecked = {}; + + //Reset validation status + this.validationStateMap = { + "account_settings_email": true, + "account_settings_full_name": true + }; + this.opened = true; } diff --git a/src/ui_ng/src/app/account/password/forgot-password.component.html b/src/ui_ng/src/app/account/password/forgot-password.component.html index 70cbf4042..b805a73f4 100644 --- a/src/ui_ng/src/app/account/password/forgot-password.component.html +++ b/src/ui_ng/src/app/account/password/forgot-password.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/ui_ng/src/app/account/password/forgot-password.component.ts b/src/ui_ng/src/app/account/password/forgot-password.component.ts index ab0a996ef..f8ed863e1 100644 --- a/src/ui_ng/src/app/account/password/forgot-password.component.ts +++ b/src/ui_ng/src/app/account/password/forgot-password.component.ts @@ -32,10 +32,15 @@ export class ForgotPasswordComponent { } public open(): void { - this.opened = true; + //Clear state data this.validationState = true; this.forceValid = true; + this.onGoing = false; + this.email = ""; this.forgotPwdForm.resetForm(); + this.inlineAlert.close(); + + this.opened = true; } public close(): void { diff --git a/src/ui_ng/src/app/account/password/password-setting.component.ts b/src/ui_ng/src/app/account/password/password-setting.component.ts index 6b38a8e8c..38b3c191c 100644 --- a/src/ui_ng/src/app/account/password/password-setting.component.ts +++ b/src/ui_ng/src/app/account/password/password-setting.component.ts @@ -93,9 +93,18 @@ export class PasswordSettingComponent implements AfterViewChecked { //Open modal dialog open(): void { - this.opened = true; - this.pwdForm.reset(); + //Reset state this.formValueChanged = false; + this.onCalling = false; + this.error = null; + this.validationStateMap = { + "newPassword": true, + "reNewPassword": true + }; + this.pwdForm.reset(); + this.inlineAlert.close(); + + this.opened = true; } //Close the moal dialog diff --git a/src/ui_ng/src/app/account/password/reset-password.component.html b/src/ui_ng/src/app/account/password/reset-password.component.html index 499db9933..69cdc9ee5 100644 --- a/src/ui_ng/src/app/account/password/reset-password.component.html +++ b/src/ui_ng/src/app/account/password/reset-password.component.html @@ -1,4 +1,4 @@ - +