description template save with close small fix

This commit is contained in:
amentis 2024-04-30 13:03:23 +03:00
parent f2cf61938d
commit a8500ebf69
1 changed files with 1 additions and 0 deletions

View File

@ -246,6 +246,7 @@ export class DescriptionTemplateEditorComponent extends BaseEditor<DescriptionTe
this.formSubmit((data) => {
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);