Show map by default on /catalog, add offersCount to products
All checks were successful
Build Docker Image / build (push) Successful in 3m27s
All checks were successful
Build Docker Image / build (push) Successful in 3m27s
- Change displayMode from 'hero' to 'map-default' for /catalog - Always show map on catalog page (fullWidthMap when no selectMode) - Add offersCount to GetProducts, GetProductsBySupplier, GetProductsNearHub - Remove CatalogHero from catalog page (hero content stays on /)
This commit is contained in:
@@ -2,7 +2,7 @@ import type { LocationQuery } from 'vue-router'
|
||||
|
||||
export type SelectMode = 'product' | 'supplier' | 'hub' | null
|
||||
export type DisplayMode =
|
||||
| 'hero'
|
||||
| 'map-default'
|
||||
| 'grid-products'
|
||||
| 'grid-suppliers'
|
||||
| 'grid-hubs'
|
||||
@@ -148,8 +148,8 @@ export function useCatalogSearch() {
|
||||
if (supplierId.value) return 'grid-products-from-supplier'
|
||||
if (hubId.value) return 'grid-products-in-hub'
|
||||
|
||||
// Empty state
|
||||
return 'hero'
|
||||
// Default: show map with all offers
|
||||
return 'map-default'
|
||||
})
|
||||
|
||||
// Check if we're on the main page (not /catalog)
|
||||
|
||||
Reference in New Issue
Block a user