Add hoveredId to all catalog pages for map point highlighting
All checks were successful
Build Docker Image / build (push) Successful in 3m46s
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:
@@ -7,6 +7,8 @@
|
||||
with-map
|
||||
map-id="hub-products-map"
|
||||
point-color="#10b981"
|
||||
:hovered-id="hoveredId"
|
||||
@update:hovered-id="hoveredId = $event"
|
||||
>
|
||||
<template #searchBar="{ displayedCount, totalCount }">
|
||||
<CatalogSearchBar
|
||||
@@ -52,6 +54,7 @@ const localePath = useLocalePath()
|
||||
const { t } = useI18n()
|
||||
|
||||
const isLoading = ref(true)
|
||||
const hoveredId = ref<string>()
|
||||
const hub = ref<any>(null)
|
||||
const products = ref<Array<{ uuid: string; name: string }>>([])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user