From 61cba23bf62e9da7350f35cfd22e60a50113666b Mon Sep 17 00:00:00 2001 From: apapachristou Date: Mon, 24 Jun 2019 18:26:40 +0300 Subject: [PATCH] Removes redirect on save profile settings --- dmp-frontend/src/app/ui/user-profile/user-profile.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts index 352897589..a25e82b14 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts @@ -131,7 +131,8 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes this.formGroup.disable(); this.authService.me() .pipe(takeUntil(this._destroyed)) - .subscribe(result => window.location.reload()); + .subscribe(result => this.router.navigate(['/profile'])); + // .subscribe(result => window.location.reload()); }, error => { console.log(error);