diff --git a/src/app/form/form.component.html b/src/app/form/form.component.html index a96763da08eb8a11a3d74a193aa0e3f450f363cb..635b6f601f9b9e91517da5602a095874dd718d90 100644 --- a/src/app/form/form.component.html +++ b/src/app/form/form.component.html @@ -121,7 +121,7 @@ <h3>Qui êtes-vous ?</h3> <p>Ces informations ne seront pas visibles sur la plateforme</p> </div> - <div class="title"> + <div *ngIf="!isClaimMode" class="title"> <h4>Vous possédez déja un compte ? Connectez-vous:</h4> <button class="btn-primary small next" *ngIf="!isLoggedIn" (click)="isPopUpOpen = !isPopUpOpen"> Se connecter diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index 7e19498b27bf06092466c8420f04b4fed8ad8405..ef3e816b176079be679ee0fa84784a0be64663f7 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -155,12 +155,12 @@ export class FormComponent implements OnInit { public updateFormOnLogin(): void { this.profileService.getProfile().then((user: User) => { this.profile = user; + this.router.navigateByUrl('create-structure'); + this.progressStatus += (100 / this.nbPagesForm) * 2; + this.pagesValidation[PageTypeEnum.accountInfo] = { valid: true }; + this.pagesValidation[PageTypeEnum.accountCredentials] = { valid: true }; + this.currentPage = PageTypeEnum.structureNameAndAddress; }); - this.router.navigateByUrl('create-structure'); - this.progressStatus += (100 / this.nbPagesForm) * 2; - this.pagesValidation[PageTypeEnum.accountInfo] = { valid: true }; - this.pagesValidation[PageTypeEnum.accountCredentials] = { valid: true }; - this.currentPage = PageTypeEnum.structureNameAndAddress; } public get isLoggedIn(): boolean {