Fix InfoPanel for offers - supplier name and map point
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:
Ruslan Bakiev
2026-01-27 12:12:05 +07:00
parent c152a5b14c
commit c39bc55ebc
2 changed files with 31 additions and 12 deletions

View File

@@ -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
})
}