Admin Dataset editor guard fix.

This commit is contained in:
Kristian Ntavidi 2021-09-09 09:09:27 +03:00
parent 0780c629c9
commit 52c26cd864
2 changed files with 5 additions and 4 deletions

View File

@ -471,6 +471,7 @@ export class DatasetProfileEditorComponent extends CheckDeactivateBaseComponent
this.datasetProfileService.updateForm(this.datasetProfileId, this.form.getRawValue())
.pipe(takeUntil(this._destroyed))
.subscribe(() => {
this.form.markAsPristine();//deactivate guard
this.router.navigate(['/dataset-profiles']);
this.uiNotificationService.snackBarNotification(this.language.instant('DATASET-PROFILE-EDITOR.FEEDBACK-MESSAGES.SAVE-SUCCESS'), SnackBarNotificationLevel.Success)
},error=>this.onCallbackError(error));