fix(catalog): remove hover/select animations from intermediate pages
All checks were successful
Build Docker Image / build (push) Successful in 3m42s
All checks were successful
Build Docker Image / build (push) Successful in 3m42s
Animation on map only needed on final pages (routes/sources). Intermediate pages now navigate directly on card click. Files changed: - hubs/index.vue - removed hover/select - suppliers/index.vue - removed hover/select - suppliers/[]/[]/index.vue - removed hover - offers/index.vue - removed hover - offers/[]/index.vue - removed hover
This commit is contained in:
@@ -6,11 +6,7 @@
|
||||
with-map
|
||||
map-id="suppliers-map"
|
||||
point-color="#3b82f6"
|
||||
:selected-id="selectedSupplierId"
|
||||
:hovered-id="hoveredSupplierId"
|
||||
:total-count="total"
|
||||
@select="onSelectSupplier"
|
||||
@update:hovered-id="hoveredSupplierId = $event"
|
||||
>
|
||||
<template #searchBar="{ displayedCount, totalCount }">
|
||||
<CatalogSearchBar
|
||||
@@ -68,10 +64,6 @@ const {
|
||||
init
|
||||
} = useCatalogSuppliers()
|
||||
|
||||
// Selected/hovered supplier for map highlighting
|
||||
const selectedSupplierId = ref<string>()
|
||||
const hoveredSupplierId = ref<string>()
|
||||
|
||||
// Search bar
|
||||
const searchQuery = ref('')
|
||||
|
||||
@@ -111,10 +103,6 @@ const onSearch = () => {
|
||||
// TODO: Implement search
|
||||
}
|
||||
|
||||
const onSelectSupplier = (supplier: any) => {
|
||||
selectedSupplierId.value = supplier.uuid || supplier.teamUuid
|
||||
}
|
||||
|
||||
await init()
|
||||
|
||||
useHead(() => ({
|
||||
|
||||
Reference in New Issue
Block a user