fix(catalog): restore hover pin actions
All checks were successful
Build Docker Image / build (push) Successful in 4m56s
All checks were successful
Build Docker Image / build (push) Successful in 4m56s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user