update order
This commit is contained in:
@@ -74,7 +74,6 @@ export default function OrderBlock({
|
||||
bookingCode: ttoReservation?.booking_code,
|
||||
clinicId: ttoReservation?.clinic_id,
|
||||
medusaLineItemId: ttoReservation?.medusa_cart_line_item_id,
|
||||
id: ttoReservation?.id,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -65,7 +65,7 @@ export default function OrderItemsTable({
|
||||
await logAnalysisResultsNavigateAction(order.medusaOrderId);
|
||||
router.push(`${pathsConfig.app.analysisResults}/${order.id}`);
|
||||
} else {
|
||||
router.push(`${pathsConfig.app.myOrders}/${order.id}`);
|
||||
router.push(`${pathsConfig.app.myOrders}/${order.medusaOrderId}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -107,9 +107,13 @@ export default function OrderItemsTable({
|
||||
/>
|
||||
<TableRow>
|
||||
<TableCell />
|
||||
<TableCell className="flex w-full items-center justify-end p-0 pt-2">
|
||||
<TableCell className="flex w-full items-center justify-end gap-2 p-0 pt-2">
|
||||
<Button size="sm" onClick={openDetailedView}>
|
||||
<Trans i18nKey="analysis-results:view" />
|
||||
<Trans
|
||||
i18nKey={
|
||||
isTtoservice ? 'orders:view' : 'analysis-results:view'
|
||||
}
|
||||
/>
|
||||
</Button>
|
||||
{isTtoservice && order.bookingCode && (
|
||||
<Button
|
||||
@@ -182,7 +186,11 @@ export default function OrderItemsTable({
|
||||
|
||||
<TableCell className="px-6 text-right">
|
||||
<Button size="sm" onClick={openDetailedView}>
|
||||
<Trans i18nKey="analysis-results:view" />
|
||||
<Trans
|
||||
i18nKey={
|
||||
isTtoservice ? 'orders:view' : 'analysis-results:view'
|
||||
}
|
||||
/>
|
||||
</Button>
|
||||
{isCancelOrderAllowed && (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user