Add admin order fulfillment tracking. #7

Merged
jocke merged 7 commits from feature/admin-fulfillment-tracking into master 2026-05-28 12:16:59 +00:00
Showing only changes of commit 623433ba4d - Show all commits

View file

@ -203,7 +203,11 @@ async function handleRegisterShipment(orderId: string) {
registeringId.value = orderId
try {
const updated = await registerShipment(orderId, trackingInput, notifyCustomer)
const updated = await registerShipment(
orderId,
trackingInput,
notifyCustomer,
)
order.status = updated.status
order.trackingId = updated.trackingId
order.shippedAt = updated.shippedAt
@ -377,8 +381,7 @@ onUnmounted(() => {
<span
class="admin__expand-icon"
:class="{
'admin__expand-icon--open':
expandedOrderId === order.id,
'admin__expand-icon--open': expandedOrderId === order.id,
}"
aria-hidden="true"
>
@ -402,7 +405,9 @@ onUnmounted(() => {
</svg>
</span>
</td>
<td class="admin__td-date">{{ formatDate(order.createdAt) }}</td>
<td class="admin__td-date">
{{ formatDate(order.createdAt) }}
</td>
<td class="admin__order-id" :title="order.id">
{{ shortOrderId(order.id) }}
</td>