description editor > added option to skip form-refresh on save.3
This commit is contained in:
parent
9a8ddfa7ea
commit
2f75ec8757
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue