summaryrefslogtreecommitdiffstats
path: root/public/src/app/rule-engine/confirm-popup/confirm-popup.component.ts
blob: 23b6cee51e4cc220cedd12f6d8386f6d4d96048a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';

@Component({
  selector: 'app-confirm-popup',
  templateUrl: './confirm-popup.component.html',
  styleUrls: ['./confirm-popup.component.scss']
})
export class ConfirmPopupComponent {
  constructor(
    public dialogRef: MatDialogRef<ConfirmPopupComponent>,
    @Inject(MAT_DIALOG_DATA) public data: any
  ) {}

  close(flag) {
    this.dialogRef.close(flag);
  }
}