diff --git a/frontend/src/app/services/dialog.service.ts b/frontend/src/app/services/dialog.service.ts index 038c085190..45f772e552 100644 --- a/frontend/src/app/services/dialog.service.ts +++ b/frontend/src/app/services/dialog.service.ts @@ -28,7 +28,7 @@ export class DialogService { open(component: ComponentType, config?: MatDialogConfig): MatDialogRef { return this.dialog.open(component, { ...this.DIALOG_CONFIG, - data: config?.data, + ...config, }); } @@ -39,8 +39,7 @@ export class DialogService { } openConfirmDialogWithCustomText(title: string, text: string) { - return this.dialog.open(ConfirmDialogComponent, { - ...this.DIALOG_CONFIG, + return this.open(ConfirmDialogComponent, { data: { title: title, text: text,