Skip to content

Commit

Permalink
clean up dialog service
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Oct 24, 2024
1 parent 8875021 commit b1222ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/app/services/dialog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class DialogService {
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R> {
return this.dialog.open(component, {
...this.DIALOG_CONFIG,
data: config?.data,
...config,
});
}

Expand All @@ -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,
Expand Down

0 comments on commit b1222ad

Please sign in to comment.