Add hoveredId to all catalog pages for map point highlighting
All checks were successful
Build Docker Image / build (push) Successful in 3m46s

When hovering over a card on the left, the corresponding point
on the map now shows a blue highlight.
This commit is contained in:
Ruslan Bakiev
2026-01-19 13:01:57 +07:00
parent 825128e349
commit d8befc8b9f
7 changed files with 27 additions and 0 deletions

View File

@@ -7,7 +7,9 @@
map-id="suppliers-map"
point-color="#3b82f6"
:total-count="total"
:hovered-id="hoveredId"
@select="onSelectSupplier"
@update:hovered-id="hoveredId = $event"
>
<template #searchBar="{ displayedCount, totalCount }">
<CatalogSearchBar
@@ -66,6 +68,9 @@ const {
init
} = useCatalogSuppliers()
// Hover state
const hoveredId = ref<string>()
// Search bar
const searchQuery = ref('')