updates on the ui changes and the bot changes
This commit is contained in:
@@ -799,7 +799,23 @@ const Deliveries = () => {
|
||||
Status
|
||||
</Text>
|
||||
),
|
||||
cell: ({ getValue }) => <StatusBadge status={getValue()} />
|
||||
// The badge explains itself when the value did not come from the
|
||||
// booking. Without this an operator comparing the table against
|
||||
// GET /admin/bookings sees "Active" next to
|
||||
// `"status": "Converted_To_Consignment"` and reasonably assumes the
|
||||
// page is wrong — it isn't; the booking simply stops moving at pickup.
|
||||
cell: ({ getValue, row }) =>
|
||||
row.original.statusfromconsignment ? (
|
||||
<Tooltip
|
||||
content={`From consignment #${row.original.consignmentid} (${row.original.consignmentstatus}). The booking itself stays at Converted_To_Consignment once it has been picked up.`}
|
||||
>
|
||||
<span>
|
||||
<StatusBadge status={getValue()} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<StatusBadge status={getValue()} />
|
||||
)
|
||||
},
|
||||
{
|
||||
id: 'tenant',
|
||||
|
||||
Reference in New Issue
Block a user