Skip to content

Commit

Permalink
Merge pull request #403 from chaitrali-r/main
Browse files Browse the repository at this point in the history
Submit Button Change
  • Loading branch information
Pratikshakhandagale authored Aug 22, 2023
2 parents f7befae + a9bf0ce commit 13cf0b9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions donor-registry/src/app/forms/forms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class FormsComponent implements OnInit {
eSignWindowClosed: boolean = false;
dateofBirth: any = null;
esignSuccess: boolean = false;
count: number = 0;

ngAfterViewChecked() {
this.cdr.detectChanges();
Expand Down Expand Up @@ -297,11 +298,6 @@ export class FormsComponent implements OnInit {
(<HTMLInputElement>document.getElementById("aadhaarMasked")).disabled = true;
}


if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

const relationPlaceholder3 = (<HTMLInputElement>document.getElementById("formly_155_enum_relation_1"));
if (relationPlaceholder3) {
const option = document.createElement('option');
Expand Down Expand Up @@ -340,11 +336,6 @@ export class FormsComponent implements OnInit {

if (document.getElementById("aadhaarMasked")) {
(<HTMLInputElement>document.getElementById("aadhaarMasked")).disabled = true;

}

if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

let notReadOnly = localStorage.getItem('notReadOnly');
Expand Down Expand Up @@ -789,7 +780,11 @@ export class FormsComponent implements OnInit {
}

onFormChange() {
this.isFormEdited = true;
if (this.count != 0) {
this.isFormEdited = true;
} else {
this.count++;
}
}

loadSchema() {
Expand Down Expand Up @@ -2299,6 +2294,11 @@ export class FormsComponent implements OnInit {
this.model = res;
this.identifier = res.osid;
}

if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

this.loadSchema()
});

Expand Down

0 comments on commit 13cf0b9

Please sign in to comment.