user profile reload page after save
This commit is contained in:
parent
bd86747278
commit
87d6158647
|
@ -249,21 +249,20 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes
|
|||
return;
|
||||
}
|
||||
const formData = this.formService.getValue(this.formGroup.value) as UserPersist;
|
||||
formData.additionalInfo.organization.typeId = Guid.parse(this.referenceTypeService.getOrganizationReferenceType());
|
||||
if (formData.additionalInfo.organization) formData.additionalInfo.organization.typeId = Guid.parse(this.referenceTypeService.getOrganizationReferenceType());
|
||||
this.userService.persist(formData)
|
||||
.pipe(takeUntil(this._destroyed))
|
||||
.subscribe(
|
||||
x => {
|
||||
this.editMode = false;
|
||||
this.languageService.changeLanguage(this.formGroup.get('additionalInfo').get('language').value);
|
||||
this.getOrRefreshData();
|
||||
this.authService.refresh()
|
||||
.pipe(takeUntil(this._destroyed))
|
||||
.subscribe(result => {
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
|
||||
this.router.navigate(['/profile']);
|
||||
// this.router.navigate(['/profile']);
|
||||
window.location.reload();
|
||||
});
|
||||
// .subscribe(result => window.location.reload());
|
||||
},
|
||||
error => this.onCallbackError(error));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue