Skip to content

Commit

Permalink
fix typo on warning modal
Browse files Browse the repository at this point in the history
  • Loading branch information
rmroot committed Nov 19, 2024
1 parent d8a71b2 commit ca8b951
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class CompanyContactsSetupComponent implements OnInit, OnDestroy {

canDeactivate(): Observable<boolean> {
if (this.hasInvalidContacts) {
this.dislayWarningModal();
this.displayWarningModal();
return of(false);
}
return of(true);
Expand Down Expand Up @@ -99,7 +99,7 @@ export class CompanyContactsSetupComponent implements OnInit, OnDestroy {
this.hasInvalidContacts = hasInvalidContacts;
}
}
dislayWarningModal() {
displayWarningModal() {
this.routeGuardWarningModal = true;
}
closeWarningModal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ export class FacilitySetupComponent implements OnInit {
canDeactivate(): Observable<boolean> {
if (this.name && this.name.getError('required')) {
this.name.markAsTouched();
this.dislayWarningModal();
this.displayWarningModal();
return of(false);
}
return of(true);
}

dislayWarningModal() {
displayWarningModal() {
this.routeGuardWarningModal = true;
}
closeWarningModal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ export class CompanyContactsFormComponent {
this.contactForm.controls['lastname'].invalid
) {
this.contactForm.markAllAsTouched();
this.dislayWarningModal();
this.displayWarningModal();
return of(false);
}
return of(true);
}

dislayWarningModal() {
displayWarningModal() {
this.routeGuardWarningModal = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export class FacilitySettingsComponent {

canDeactivate(): Observable<boolean> {
if (this.name && this.name.getError('required')) {
this.dislayWarningModal();
this.displayWarningModal();
return of(false);
}
return of(true);
}

dislayWarningModal() {
displayWarningModal() {
this.routeGuardWarningModal = true;
}
closeWarningModal() {
Expand Down

0 comments on commit ca8b951

Please sign in to comment.