Fix InfoPanel for offers - supplier name and map point
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
- Show supplier name with loading state instead of "View Supplier" link - Fix offer coordinates on map (use locationLatitude/locationLongitude)
This commit is contained in:
@@ -298,12 +298,15 @@ const relatedPoints = computed(() => {
|
||||
}> = []
|
||||
|
||||
// Add current entity first (the one we're viewing in InfoPanel)
|
||||
if (entity.value?.latitude && entity.value?.longitude) {
|
||||
// For offers, coordinates are in locationLatitude/locationLongitude
|
||||
const lat = entity.value?.latitude ?? entity.value?.locationLatitude
|
||||
const lon = entity.value?.longitude ?? entity.value?.locationLongitude
|
||||
if (lat && lon) {
|
||||
points.push({
|
||||
uuid: infoId.value.uuid,
|
||||
name: entity.value.name || '',
|
||||
latitude: Number(entity.value.latitude),
|
||||
longitude: Number(entity.value.longitude),
|
||||
name: entity.value.name || entity.value.productName || '',
|
||||
latitude: Number(lat),
|
||||
longitude: Number(lon),
|
||||
type: infoId.value.type
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user