fix(catalog): restore hover pin actions
All checks were successful
Build Docker Image / build (push) Successful in 4m56s

This commit is contained in:
Ruslan Bakiev
2026-02-07 09:55:22 +07:00
parent 1fa4a707ad
commit 589a74d75e
3 changed files with 59 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
:loading-more="selectionLoadingMore"
:has-more="selectionHasMore && !filterByBounds"
@select="onSelectItem"
@pin="onPinItem"
@close="onClosePanel"
@load-more="onLoadMore"
@hover="onHoverItem"
@@ -66,6 +67,7 @@
@select-product="onInfoSelectProduct"
@select-offer="onSelectOffer"
@open-kyc="onOpenKyc"
@pin="onPinItem"
/>
<!-- Quote results: show offers after search -->
@@ -585,6 +587,12 @@ const onSelectItem = (type: string, item: { uuid?: string | null; name?: string
}
}
const onPinItem = (type: 'product' | 'hub' | 'supplier', item: { uuid?: string | null; name?: string | null }) => {
if (!item.uuid) return
const label = item.name || item.uuid.slice(0, 8) + '...'
selectItem(type, item.uuid, label)
}
// Close panel (cancel select mode)
const onClosePanel = () => {
cancelSelect()