Skip to content

Commit

Permalink
Merge pull request #349 from chaitrali-r/main
Browse files Browse the repository at this point in the history
Submit button should be disabled
  • Loading branch information
Pratikshakhandagale authored Jul 31, 2023
2 parents 915f8e6 + 9d1fa86 commit ad9fee3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions donor-registry/src/app/forms/forms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export class FormsComponent implements OnInit {
optionAdded: boolean = false;
isVerified: string;
isFormEdited: boolean = false;
count: number = 0;

ngAfterViewChecked() {
this.cdr.detectChanges();
Expand Down Expand Up @@ -779,8 +780,12 @@ export class FormsComponent implements OnInit {

}

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

loadSchema() {
Expand Down

0 comments on commit ad9fee3

Please sign in to comment.