From f3e5884cb98c8d28802e80b3adeb84f279059bd2 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Thu, 6 Jan 2022 15:26:27 +0100 Subject: [PATCH] fix: borken link un profil for editing structure and .gitlabci rollback --- .gitlab-ci.yml | 3 --- .../structure-options-modal.component.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fb104a4e..3564df811 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,7 +63,6 @@ deploy_dev: - cd /home/mps/ram - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker-compose pull web-app - - docker-compose stop web-app - docker-compose up -d web-app - docker system prune -a -f @@ -77,7 +76,6 @@ deploy_mobile: - cd /home/mps/ram - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker-compose pull web-app - - docker-compose stop web-app - docker-compose up -d web-app - docker system prune -a -f @@ -91,7 +89,6 @@ deploy_rec: - cd /home/mps/ram - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker-compose pull web-app-rec - - docker-compose stop web-app - docker-compose up -d web-app-rec - docker system prune -a -f diff --git a/src/app/shared/components/structure-options-modal/structure-options-modal.component.ts b/src/app/shared/components/structure-options-modal/structure-options-modal.component.ts index 7f3ea1a62..ef6eea171 100644 --- a/src/app/shared/components/structure-options-modal/structure-options-modal.component.ts +++ b/src/app/shared/components/structure-options-modal/structure-options-modal.component.ts @@ -122,7 +122,7 @@ export class StructureOptionsModalComponent implements OnInit { this.editModal = TypeModalProfile.deleteAccount; break; case FunctionTypeModalOptions.editStructure: - this.router.navigateByUrl('/create-structure', { state: { data: this.structure.structure } }); + this.router.navigateByUrl(`/create-structure/${this.structure.structure._id}`); break; case FunctionTypeModalOptions.removeStructure: this.toggleDeleteStructureModal(); -- GitLab