diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index 1ee3c86..05dcbe3 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -985,8 +985,8 @@ export default function BLReconciliation() { variant="outline" size="sm" onClick={() => handleOpenCommentModal(delivery)} - className={`h-8 w-8 p-0 ${delivery.notes ? 'text-blue-600 hover:text-blue-700' : 'text-gray-400 hover:text-gray-600'}`} - title={delivery.notes ? "Voir/Modifier commentaire" : "Ajouter commentaire"} + className={`h-8 w-8 p-0 ${delivery.notes ? 'text-blue-600 hover:text-blue-700' : 'text-gray-400 hover:text-gray-600'} ${delivery.reconciled ? 'opacity-70' : ''}`} + title={delivery.reconciled ? (delivery.notes ? "Voir commentaire (lecture seule)" : "Aucun commentaire") : (delivery.notes ? "Voir/Modifier commentaire" : "Ajouter commentaire")} > @@ -1199,8 +1199,8 @@ export default function BLReconciliation() { delivery.notes ? 'text-blue-600 hover:text-blue-700 hover:bg-blue-50' : 'text-gray-400 hover:text-gray-600 hover:bg-gray-50' - }`} - title={delivery.notes ? "Voir/Modifier commentaire" : "Ajouter commentaire"} + } ${delivery.reconciled ? 'opacity-70' : ''}`} + title={delivery.reconciled ? (delivery.notes ? "Voir commentaire (lecture seule)" : "Aucun commentaire") : (delivery.notes ? "Voir/Modifier commentaire" : "Ajouter commentaire")} > @@ -1389,6 +1389,9 @@ export default function BLReconciliation() { Commentaire de livraison + {selectedDeliveryForComment?.reconciled && ( + Lecture seule + )} @@ -1411,15 +1414,24 @@ export default function BLReconciliation() {