Redirect search to catalog offers flow instead of /request
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:
Ruslan Bakiev
2026-01-21 14:59:50 +07:00
parent 16c0a8112e
commit 631effdde4
5 changed files with 86 additions and 42 deletions

View File

@@ -46,16 +46,16 @@ const selectProduct = (product: any) => {
searchStore.setProduct(product.name)
searchStore.setProductUuid(product.uuid)
const locationUuid = searchStore.searchForm.locationUuid
const quantity = searchStore.searchForm.quantity
const query: Record<string, string> = {}
if (quantity) query.quantity = String(quantity)
if (locationUuid) {
// Both product and hub selected -> show offers
navigateTo({
path: '/request',
query: {
productUuid: product.uuid,
product: product.name,
locationUuid,
location: searchStore.searchForm.location,
quantity: searchStore.searchForm.quantity || undefined
}
path: `/catalog/offers/${product.uuid}/${locationUuid}`,
query
})
return
}