/** Angular Imports */ import { Component , Inject } from '@angular/core' ; import { MatDialogRef , MAT_DIALOG_DATA } from '@angular/material/dialog' ; /**
 * Delete signature dialog component.
 */ @ Component ( { selector : 'mifosx-delete-signature-dialog' , templateUrl : './delete-signature-dialog.component.html' , styleUrls : [ './delete-signature-dialog.component.scss' ] } ) export class DeleteSignatureDialogComponent { /** Id of client signature in documents */ signatureId : any ; param { MatDialogRef } dialogRef param { any } data constructor ( public dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { const signature = this . data . find ( ( document ) => document . name === 'clientSignature' ) || { } ; this . signatureId = signature . id ; } }