From 19c0763e4a317b696e08295f57217e02d5194719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marl=C3=A8ne=20SIMONDANT?= <msimondant@grandlyon.com> Date: Wed, 14 Feb 2024 16:52:07 +0000 Subject: [PATCH] fix(structureCreation): fix free wifi page validation --- .../form/form-view/structure-form/structure-form.component.ts | 2 +- .../structure-form/structure-wifi/structure-wifi.component.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/form/form-view/structure-form/structure-form.component.ts b/src/app/form/form-view/structure-form/structure-form.component.ts index 769824f36..dc85a4ee1 100644 --- a/src/app/form/form-view/structure-form/structure-form.component.ts +++ b/src/app/form/form-view/structure-form/structure-form.component.ts @@ -180,7 +180,7 @@ export class StructureFormComponent implements OnChanges, OnInit { valid: this.structureForm.get('freeWorkShop').valid, }; this.pagesValidation[structureFormStep.structureWifi] = { - valid: this.structureForm.get('categories').get('selfServiceMaterial').valid, + valid: this.structureForm.get('freeWifi').valid, }; this.pagesValidation[structureFormStep.structureEquipments] = { valid: diff --git a/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts b/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts index 818d0a8b8..d09ef61d1 100644 --- a/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts +++ b/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts @@ -16,7 +16,6 @@ export class StructureWifiComponent implements OnInit { public formUtils = new FormUtils(); ngOnInit(): void { this.validateForm.emit(); - console.log('freewifi', this.structureForm.get('freeWifi').value); } public isInArray(formControlName: string, term: string): boolean { return this.formUtils.isInCategoryArray(term, formControlName, this.structureForm); -- GitLab