Skip to content

Commit

Permalink
N'affiche pas le bouton de suppression d'une année/colonne en mode le…
Browse files Browse the repository at this point in the history
…cture seule
  • Loading branch information
marc-rutkowski committed Jan 16, 2025
1 parent 48b59c1 commit d9c0f23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type CellAnneeListProps = {
confidentiel?: boolean;
data: PreparedData;
definition: IndicateurDefinition;
readonly?: boolean;
type: SourceType;
onDelete: (valeur: IndicateurSourceValeur) => void;
};
Expand All @@ -20,6 +21,7 @@ export const CellAnneeList = ({
confidentiel,
data,
definition,
readonly,
type,
onDelete,
}: CellAnneeListProps) => {
Expand All @@ -44,7 +46,7 @@ export const CellAnneeList = ({
)}
<div className="flex items-center justify-between">
<span className="w-full">{annee}</span>
{valeur && (
{valeur && !readonly && (
<Button
className="!bg-transparent !border-none"
icon="delete-bin-6-line"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const IndicateurValeursTable = ({
data={data}
definition={definition}
confidentiel={confidentiel}
readonly={readonly}
type={type}
onDelete={(valeur) => {
deleteValeur({
Expand Down

0 comments on commit d9c0f23

Please sign in to comment.