From a8500ebf69c018ee9514112f2450856c730875ce Mon Sep 17 00:00:00 2001 From: amentis Date: Tue, 30 Apr 2024 13:03:23 +0300 Subject: [PATCH] description template save with close small fix --- .../editor/description-template-editor.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts index 03f6efb79..1e1e204b5 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts @@ -246,6 +246,7 @@ export class DescriptionTemplateEditorComponent extends BaseEditor { this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success); if(close){ + this.formGroup = null; this.router.navigate(['/description-templates']); } else { this.refreshOnNavigateToData(data ? data.id : null);