Pin selection items to global filters
All checks were successful
Build Docker Image / build (push) Successful in 4m29s
All checks were successful
Build Docker Image / build (push) Successful in 4m29s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user