feat(client): show actionable customs count on sidebar
This commit is contained in:
@@ -22,6 +22,9 @@ import {
|
||||
type MerchantClearanceResult,
|
||||
} from '@/modules/first-leg/api/customs'
|
||||
|
||||
import { useCustomsPendingStore } from '../store/customsPending'
|
||||
|
||||
const customsPending = useCustomsPendingStore()
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
orderId: string
|
||||
@@ -104,6 +107,7 @@ async function retryClearanceResults() {
|
||||
|
||||
async function loadDetail() {
|
||||
if (disposed || !props.modelValue || !props.orderId) return
|
||||
void customsPending.refresh(true)
|
||||
const request = ++detailRequest
|
||||
resetClearanceResults()
|
||||
const orderId = props.orderId
|
||||
|
||||
Reference in New Issue
Block a user