From 58da1c6ec4083559412a3d2ccc91173d5e36df37 Mon Sep 17 00:00:00 2001 From: Alexandre Garbe Date: Mon, 1 Jul 2024 13:38:34 +0200 Subject: [PATCH] feat(admin-react): completed dematerialized feasibility file competences blocs now show an "update" button instead of a "complete" one --- .../feasibility-aap/aapFeasibilityPageLogic.ts | 1 + .../candidacies/[candidacyId]/feasibility-aap/page.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/aapFeasibilityPageLogic.ts b/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/aapFeasibilityPageLogic.ts index 1f66c1e94..ae501c4cb 100644 --- a/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/aapFeasibilityPageLogic.ts +++ b/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/aapFeasibilityPageLogic.ts @@ -26,6 +26,7 @@ const getCandidacyById = graphql(` state } blocsDeCompetences { + complete certificationCompetenceBloc { id code diff --git a/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/page.tsx b/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/page.tsx index 5541d8b3f..cca185cfe 100644 --- a/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/page.tsx +++ b/packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/feasibility-aap/page.tsx @@ -70,7 +70,7 @@ const AapFeasibilityPage = () => { {dematerializedFeasibilityFile?.blocsDeCompetences?.map((bc) => (
  • {bc.certificationCompetenceBloc.code @@ -78,12 +78,14 @@ const AapFeasibilityPage = () => { : bc.certificationCompetenceBloc.label}
  • ))}