description editor > added option to skip form-refresh on save.3

This commit is contained in:
Sofia Papacharalampous 2024-04-26 16:05:40 +03:00
parent 9a8ddfa7ea
commit 2f75ec8757
1 changed files with 2 additions and 2 deletions

View File

@ -109,12 +109,12 @@ export abstract class BaseEditor<EditorModelType extends BaseEditorModel, Entity
onCallbackSuccess(data?: any): void { onCallbackSuccess(data?: any, refresh: boolean = true): void {
console.log("Success:", data); console.log("Success:", data);
this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success); this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
this.refreshOnNavigateToData(data ? data.id : null); if (refresh) this.refreshOnNavigateToData(data ? data.id : null);
} }
onCallbackDeleteSuccess(data?: any): void { onCallbackDeleteSuccess(data?: any): void {