Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Oct 1, 2024
1 parent ba11dda commit 14b3692
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Component, Inject, OnDestroy} from '@angular/core';
import {AbstractControl} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import {Observable, Subject} from 'rxjs';
import {finalize} from 'rxjs/operators';
Expand Down Expand Up @@ -165,14 +164,4 @@ export class ContractAgreementTransferDialogComponent implements OnDestroy {
transferProcessRequestJsonLd: value.transferProcessRequest!,
};
}

isRequiredField(field: string) {
const form_field = this.form.all.get(field);
if (!form_field || !form_field.validator) {
return false;
}

const validator = form_field.validator({} as AbstractControl);
return validator && validator.required;
}
}

0 comments on commit 14b3692

Please sign in to comment.