Redirect search to catalog offers flow instead of /request
All checks were successful
Build Docker Image / build (push) Successful in 4m2s
All checks were successful
Build Docker Image / build (push) Successful in 4m2s
- GlobalSearchBar now redirects to /catalog/offers/[productId]/[hubId] - GoodsContent redirects to offers flow - select-location pages redirect to offers flow - Added quantity tag to offers page - Added KYC profile loading and offer detail navigation on offers page
This commit is contained in:
@@ -76,15 +76,12 @@ const selectItem = async (item: any) => {
|
||||
searchStore.setLocation(item.name)
|
||||
searchStore.setLocationUuid(item.uuid)
|
||||
if (route.query.after === 'request' && searchStore.searchForm.productUuid && searchStore.searchForm.locationUuid) {
|
||||
const query: Record<string, string> = {}
|
||||
if (searchStore.searchForm.quantity) query.quantity = String(searchStore.searchForm.quantity)
|
||||
|
||||
router.push({
|
||||
path: '/request',
|
||||
query: {
|
||||
productUuid: searchStore.searchForm.productUuid,
|
||||
product: searchStore.searchForm.product,
|
||||
locationUuid: searchStore.searchForm.locationUuid,
|
||||
location: searchStore.searchForm.location,
|
||||
quantity: searchStore.searchForm.quantity || undefined
|
||||
}
|
||||
path: `/catalog/offers/${searchStore.searchForm.productUuid}/${searchStore.searchForm.locationUuid}`,
|
||||
query
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user