Fix catalog map navigation and hover interactions
All checks were successful
Build Docker Image / build (push) Successful in 3m44s
All checks were successful
Build Docker Image / build (push) Successful in 3m44s
- Add @select handler to hubs/index.vue and suppliers/index.vue for map click navigation - Add hoveredId props to final pages for point highlighting on card hover - Add "Выберите источник" hint on final pages with sources
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
map-id="hubs-map"
|
||||
point-color="#10b981"
|
||||
:total-count="total"
|
||||
@select="onSelectHub"
|
||||
>
|
||||
<template #searchBar="{ displayedCount, totalCount }">
|
||||
<CatalogSearchBar
|
||||
@@ -85,6 +86,7 @@ definePageMeta({
|
||||
})
|
||||
|
||||
const { t } = useI18n()
|
||||
const localePath = useLocalePath()
|
||||
|
||||
const {
|
||||
items,
|
||||
@@ -163,6 +165,11 @@ const onSearch = () => {
|
||||
// TODO: Implement search by hub name
|
||||
}
|
||||
|
||||
// Handle hub selection from map
|
||||
const onSelectHub = (hub: any) => {
|
||||
navigateTo(localePath(`/catalog/hubs/${hub.uuid}`))
|
||||
}
|
||||
|
||||
await init()
|
||||
|
||||
useHead(() => ({
|
||||
|
||||
Reference in New Issue
Block a user