form reset fixed

form reset fixed for reset password and change password
mazdak/UX-2366
Mazdak Gibran 6 days ago
parent 60435ce48d
commit d85555ed6e

@ -215,7 +215,7 @@ constructor(
next: (response) => {
if (!(response instanceof HttpErrorResponse)) {
this.i18nService.success(SuccessMessages.CHANGE_PASSWORD_SUCCESS, []);
this.router.navigate(['/home/dashboard']);
this.changePasswordForm.reset();
}
}
});

@ -103,7 +103,7 @@ export class ResetPasswordComponent implements OnInit{
next: (response) => {
if (!(response instanceof HttpErrorResponse)) {
this.i18nService.success(SuccessMessages.RESET_PASSWORD_SUCCESS, []);
this.router.navigate(['/dashboard']);
this.resetPasswordForm.reset()
}
}
});

Loading…
Cancel
Save