From 35b72f9e3e82b8f1ff9ebeba68587d2333f3ee4b Mon Sep 17 00:00:00 2001 From: gcarron <gcarron@grandlyon.com> Date: Wed, 2 Nov 2022 10:38:47 +0100 Subject: [PATCH 1/2] fix: onboarding structure creation missing end button --- src/app/form/footer-form/footer-form.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/form/footer-form/footer-form.component.ts b/src/app/form/footer-form/footer-form.component.ts index 92f8951d6..b7402a9aa 100644 --- a/src/app/form/footer-form/footer-form.component.ts +++ b/src/app/form/footer-form/footer-form.component.ts @@ -68,7 +68,7 @@ export class FooterFormComponent implements OnChanges { if (this.currentForm === formType.structure && this.currentStep === structureFormStep.mailSentInfo) { const user: User = await this.profileService.getProfile(); if (!user.job || !user.job.hasPersonalOffer) { - this.isLastFormStep = true; + this.isLastFormStep = false; } } if ( -- GitLab From 0c6e5d7d656084276f1ddfdfe283d8f1a9c63120 Mon Sep 17 00:00:00 2001 From: gcarron <gcarron@grandlyon.com> Date: Wed, 2 Nov 2022 10:52:14 +0100 Subject: [PATCH 2/2] remove condition --- src/app/form/footer-form/footer-form.component.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/app/form/footer-form/footer-form.component.ts b/src/app/form/footer-form/footer-form.component.ts index b7402a9aa..45f2ba576 100644 --- a/src/app/form/footer-form/footer-form.component.ts +++ b/src/app/form/footer-form/footer-form.component.ts @@ -64,13 +64,6 @@ export class FooterFormComponent implements OnChanges { ) { this.isNextFormTransition = true; } - - if (this.currentForm === formType.structure && this.currentStep === structureFormStep.mailSentInfo) { - const user: User = await this.profileService.getProfile(); - if (!user.job || !user.job.hasPersonalOffer) { - this.isLastFormStep = false; - } - } if ( this.currentForm === formType.structure && (this.currentStep === structureFormStep.noStructure || -- GitLab