From 4e7ee0722a28f66e2a9f0f5d14805d107fe5920a Mon Sep 17 00:00:00 2001 From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com> Date: Fri, 30 Apr 2021 11:16:31 +0200 Subject: [PATCH] feat: allow connexion from structure form --- src/app/form/form.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index 6051a2538..e0367bf0a 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -153,8 +153,12 @@ export class FormComponent implements OnInit { } public updateFormOnLogin() { - //TODO -> switch to signed mode, update user data, validate/delete previous field, skip 2 pages - this.isAccountMode = true; + this.profileService.getProfile().then((user: User) => { + this.profile = user; + }); + this.router.navigateByUrl('create-structure'); + this.pagesValidation[PageTypeEnum.accountInfo] = { valid: true }; + this.pagesValidation[PageTypeEnum.accountCredentials] = { valid: true }; this.currentPage = PageTypeEnum.structureNameAndAddress; } -- GitLab