From 7080382f566a0c262f6ac5dc0a3c6302d82eb221 Mon Sep 17 00:00:00 2001 From: seb Date: Sat, 17 Oct 2026 18:38:15 +0200 Subject: [PATCH] u --- src/components/manifest/DeliveryList.jsx | 72 +++++++++++------------- 1 file changed, 33 insertions(+), 39 deletions(-) diff --git a/src/components/manifest/DeliveryList.jsx b/src/components/manifest/DeliveryList.jsx index 7d268d3..b2a593c 100644 --- a/src/components/manifest/DeliveryList.jsx +++ b/src/components/manifest/DeliveryList.jsx @@ -227,8 +227,8 @@ class DeliveryRow extends Component { const unbooked = isBooked ? 0 : (delivery.ledger?.unbookedPositions != null - ? Number(delivery.ledger.unbookedPositions) - : Math.max(0, totalPositions - completelyBooked)); + ? Number(delivery.ledger.unbookedPositions) + : Math.max(0, totalPositions - completelyBooked)); return ( 0 ) : unbooked === 0 ? ( - + } + label="Gebucht" + color="success" + variant="outlined" + onClick={() => onOpenBookDialog?.(delivery)} + sx={{ fontWeight: 600, cursor: 'pointer' }} + /> + ) : ( + <> } - label="Gebucht" - color="success" + icon={} + label={String(unbooked)} + color="warning" variant="outlined" onClick={() => onOpenBookDialog?.(delivery)} sx={{ fontWeight: 600, cursor: 'pointer' }} /> - - ) : ( - <> - - } - label={String(unbooked)} - color="warning" - variant="outlined" - onClick={() => onOpenBookDialog?.(delivery)} - sx={{ fontWeight: 600, cursor: 'pointer' }} - /> -