Rename drawer to panel, use selectMode for visibility
All checks were successful
Build Docker Image / build (push) Successful in 3m44s

This commit is contained in:
Ruslan Bakiev
2026-01-26 14:52:19 +07:00
parent 911de423f6
commit 3211c5a881
2 changed files with 31 additions and 17 deletions

View File

@@ -28,7 +28,7 @@
:loading-more="selectionLoadingMore"
:has-more="selectionHasMore && !filterByBounds"
@select="onSelectItem"
@close="onCloseDrawer"
@close="onClosePanel"
@load-more="onLoadMore"
@hover="onHoverItem"
/>
@@ -116,8 +116,7 @@ const {
cancelSelect,
openInfo,
closeInfo,
setLabel,
closeDrawer
setLabel
} = useCatalogSearch()
// Info panel composable
@@ -378,18 +377,17 @@ const onMapSelect = async (item: any) => {
setLabel(infoType, itemId, itemName)
}
// Handle selection from SelectionPanel - open Info and close drawer
// Handle selection from SelectionPanel - open Info and close panel
const onSelectItem = (type: string, item: any) => {
if (item.uuid && item.name) {
openInfo(type as 'hub' | 'supplier' | 'offer', item.uuid)
setLabel(type, item.uuid, item.name)
closeDrawer()
}
}
// Close drawer
const onCloseDrawer = () => {
closeDrawer()
// Close panel (cancel select mode)
const onClosePanel = () => {
cancelSelect()
}
// Handle Info panel events