Pin selection items to global filters
All checks were successful
Build Docker Image / build (push) Successful in 4m29s

This commit is contained in:
Ruslan Bakiev
2026-02-06 15:30:31 +07:00
parent f0c687c3ff
commit f80164c912
2 changed files with 24 additions and 49 deletions

View File

@@ -32,6 +32,7 @@
:loading-more="selectionLoadingMore"
:has-more="selectionHasMore && !filterByBounds"
@select="onSelectItem"
@pin="onPinItem"
@close="onClosePanel"
@load-more="onLoadMore"
@hover="onHoverItem"
@@ -499,6 +500,12 @@ const onSelectItem = (type: string, item: { uuid?: string | null; name?: string
}
}
const onPinItem = (type: string, item: { uuid?: string | null; name?: string | null }) => {
if (item.uuid && item.name) {
selectItem(type, item.uuid, item.name)
}
}
// Close panel (cancel select mode)
const onClosePanel = () => {
cancelSelect()