From d9c0f23a7abdb2b99f4fb60bf610f7112575113f Mon Sep 17 00:00:00 2001 From: Marc Rutkowski Date: Thu, 16 Jan 2025 18:56:52 +0100 Subject: [PATCH] =?UTF-8?q?N'affiche=20pas=20le=20bouton=20de=20suppressio?= =?UTF-8?q?n=20d'une=20ann=C3=A9e/colonne=20en=20mode=20lecture=20seule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/collectivite/Indicateurs/table/cell-annee-list.tsx | 4 +++- .../Indicateurs/table/indicateur-valeurs-table.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/Indicateurs/table/cell-annee-list.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/Indicateurs/table/cell-annee-list.tsx index aaae06b12e..2d20f72b67 100644 --- a/app.territoiresentransitions.react/src/app/pages/collectivite/Indicateurs/table/cell-annee-list.tsx +++ b/app.territoiresentransitions.react/src/app/pages/collectivite/Indicateurs/table/cell-annee-list.tsx @@ -11,6 +11,7 @@ type CellAnneeListProps = { confidentiel?: boolean; data: PreparedData; definition: IndicateurDefinition; + readonly?: boolean; type: SourceType; onDelete: (valeur: IndicateurSourceValeur) => void; }; @@ -20,6 +21,7 @@ export const CellAnneeList = ({ confidentiel, data, definition, + readonly, type, onDelete, }: CellAnneeListProps) => { @@ -44,7 +46,7 @@ export const CellAnneeList = ({ )}
{annee} - {valeur && ( + {valeur && !readonly && (