Skip to content
Snippets Groups Projects

Resolve "Structure/création : message pas clair quand on n'a pas les informations de la structure"

11 files
+ 5
107
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -62,11 +62,7 @@ export class FooterFormComponent implements OnChanges {
) {
this.isNextFormTransition = true;
}
if (
this.currentForm === formType.structure &&
(this.currentStep === structureFormStep.noStructure ||
this.currentStep === structureFormStep.StructureInfoUnknown)
) {
if (this.currentForm === formType.structure && this.currentStep === structureFormStep.noStructure) {
this.isLastFormStep = true;
}
}
@@ -142,13 +138,6 @@ export class FooterFormComponent implements OnChanges {
return;
}
if (this.currentForm === formType.structure) {
if (this.currentStep === structureFormStep.structureChoiceCompletion) {
const chooseCompleteStructInfo = this.form.get('choiceCompletion').value;
if (!chooseCompleteStructInfo) {
this.changeCurrentStep.emit(structureFormStep.StructureInfoUnknown);
return;
}
}
if (this.currentStep === structureFormStep.structureAccompanimentChoice) {
const hasPlaceOfReception = this.form.get('placeOfReception').value;
if (!hasPlaceOfReception) {
@@ -214,8 +203,7 @@ export class FooterFormComponent implements OnChanges {
this.currentForm === formType.structure &&
(this.currentStep === structureFormStep.mailSentInfo ||
this.currentStep === structureFormStep.structureCreationFinishedInfo ||
this.currentStep === structureFormStep.noStructure ||
this.currentStep === structureFormStep.StructureInfoUnknown)
this.currentStep === structureFormStep.noStructure)
);
}
Loading