feat(catalog): filter map clusters by chips
All checks were successful
Build Docker Image / build (push) Successful in 5m1s

This commit is contained in:
Ruslan Bakiev
2026-02-07 08:35:22 +07:00
parent aa7790f45e
commit 755a92d194
7 changed files with 89 additions and 103 deletions

View File

@@ -31,13 +31,6 @@
@mouseenter="emit('hover', item.uuid ?? null)"
@mouseleave="emit('hover', null)"
>
<button
v-if="item.uuid"
class="absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity bg-black/40 hover:bg-black/60 text-white rounded-full w-6 h-6 flex items-center justify-center"
@click.stop="onPin(item)"
>
<Icon name="lucide:pin" size="12" />
</button>
<ProductCard
:product="item"
selectable
@@ -56,13 +49,6 @@
@mouseenter="emit('hover', item.uuid ?? null)"
@mouseleave="emit('hover', null)"
>
<button
v-if="item.uuid"
class="absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity bg-black/40 hover:bg-black/60 text-white rounded-full w-6 h-6 flex items-center justify-center"
@click.stop="onPin(item)"
>
<Icon name="lucide:pin" size="12" />
</button>
<HubCard
:hub="item"
selectable
@@ -80,13 +66,6 @@
@mouseenter="emit('hover', item.uuid ?? null)"
@mouseleave="emit('hover', null)"
>
<button
v-if="item.uuid"
class="absolute top-2 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity bg-black/40 hover:bg-black/60 text-white rounded-full w-6 h-6 flex items-center justify-center"
@click.stop="onPin(item)"
>
<Icon name="lucide:pin" size="12" />
</button>
<SupplierCard
:supplier="item"
selectable
@@ -129,7 +108,6 @@ const props = defineProps<{
const emit = defineEmits<{
'select': [type: string, item: Item]
'pin': [type: string, item: Item]
'close': []
'load-more': []
'hover': [uuid: string | null]
@@ -191,10 +169,4 @@ const onSelect = (item: Item) => {
emit('select', props.selectMode, item)
}
}
const onPin = (item: Item) => {
if (props.selectMode && item.uuid) {
emit('pin', props.selectMode, item)
}
}
</script>