Skip to content

Commit

Permalink
fix: disable favorite mode for pois type: address #135
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 6, 2024
1 parent 451584c commit d46aaa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ export default defineNuxtComponent({
:poi="selectedFeature"
class="tw-grow-0"
:explorer-mode-enabled="explorerModeEnabled"
:favorites-mode-enabled="favoritesModeEnabled"
:favorites-mode-enabled="favoritesModeEnabled && selectedFeature.properties.internalType !== 'address'"
@explore-click="toggleExploreAroundSelectedPoi"
@favorite-click="toggleFavorite"
@zoom-click="goToSelectedFeature"
Expand Down Expand Up @@ -613,7 +613,7 @@ export default defineNuxtComponent({
:poi="selectedFeature"
class="tw-grow-0 tw-text-left tw-h-full"
:explorer-mode-enabled="explorerModeEnabled"
:favorites-mode-enabled="favoritesModeEnabled"
:favorites-mode-enabled="favoritesModeEnabled && selectedFeature.properties.internalType !== 'address'"
@explore-click="toggleExploreAroundSelectedPoi"
@favorite-click="toggleFavorite"
@zoom-click="goToSelectedFeature"
Expand Down
1 change: 1 addition & 0 deletions components/Search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export default defineNuxtComponent({
type: 'Feature',
geometry: feature.geometry,
properties: {
internalType: 'address',
metadata: {
id: feature.properties.id as ApiPoiId,
},
Expand Down

0 comments on commit d46aaa2

Please sign in to comment.