/** Angular Imports */ import { Component } from '@angular/core' ; import { MatDialogRef } from '@angular/material/dialog' ; /**
 * Upload signature dialog component.
 */ @ Component ( { selector : 'mifosx-upload-signature-dialog' , templateUrl : './upload-signature-dialog.component.html' , styleUrls : [ './upload-signature-dialog.component.scss' ] } ) export class UploadSignatureDialogComponent { /** Client Signature */ signature : File ; param { MatDialogRef } dialogRef constructor ( public dialogRef ) { } param { any } $event onFileSelect ( $event ) { if ( $event . target . files . length > 0 ) { this . signature = $event . target . files [ 0 ] ; } } }