Revert "Auto-open selection in Explore"
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
This reverts commit 74dd220104.
This commit is contained in:
@@ -167,7 +167,6 @@ const {
|
|||||||
setMapViewMode,
|
setMapViewMode,
|
||||||
entityColors,
|
entityColors,
|
||||||
selectItem,
|
selectItem,
|
||||||
startSelect,
|
|
||||||
cancelSelect,
|
cancelSelect,
|
||||||
openInfo,
|
openInfo,
|
||||||
closeInfo,
|
closeInfo,
|
||||||
@@ -338,24 +337,6 @@ watch([filterByBounds, urlBounds], ([enabled, urlB]) => {
|
|||||||
setProductBoundsFilter(boundsToApply)
|
setProductBoundsFilter(boundsToApply)
|
||||||
}, { immediate: true })
|
}, { immediate: true })
|
||||||
|
|
||||||
const selectModeForView = (mode: 'offers' | 'hubs' | 'suppliers') =>
|
|
||||||
mode === 'hubs' ? 'hub' : mode === 'suppliers' ? 'supplier' : 'product'
|
|
||||||
|
|
||||||
const ensureExploreSelectionOpen = () => {
|
|
||||||
if (catalogMode.value !== 'explore') return
|
|
||||||
if (infoId.value) return
|
|
||||||
if (showQuoteResults.value) return
|
|
||||||
|
|
||||||
const desired = selectModeForView(mapViewMode.value)
|
|
||||||
if (selectMode.value !== desired) {
|
|
||||||
startSelect(desired)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
watch([catalogMode, mapViewMode, infoId], () => {
|
|
||||||
ensureExploreSelectionOpen()
|
|
||||||
}, { immediate: true })
|
|
||||||
|
|
||||||
// Watch infoId to load info data
|
// Watch infoId to load info data
|
||||||
watch(infoId, async (info) => {
|
watch(infoId, async (info) => {
|
||||||
if (info) {
|
if (info) {
|
||||||
|
|||||||
Reference in New Issue
Block a user