Fix: offers map coords, map position, orders filter, select-location layout
All checks were successful
Build Docker Image / build (push) Successful in 3m38s
All checks were successful
Build Docker Image / build (push) Successful in 3m38s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<CatalogPage
|
||||
:items="items"
|
||||
:items="itemsForMap"
|
||||
:loading="isLoading || productsLoading"
|
||||
map-id="offers-map"
|
||||
point-color="#f59e0b"
|
||||
@@ -64,6 +64,13 @@ const {
|
||||
setProductUuid
|
||||
} = useCatalogOffers()
|
||||
|
||||
// Map items with correct coordinate field names
|
||||
const itemsForMap = computed(() => items.value.map(offer => ({
|
||||
...offer,
|
||||
latitude: offer.locationLatitude,
|
||||
longitude: offer.locationLongitude
|
||||
})))
|
||||
|
||||
// Product filter options
|
||||
const productFilters = computed(() => {
|
||||
const all = [{ id: 'all', label: t('catalogOffersSection.filters.all_products') }]
|
||||
|
||||
Reference in New Issue
Block a user