@@ -47,7 +47,9 @@ const menuStore = useMenuStore()
47
47
const { apiMenuCategory, features, selectedCategoryIds } = storeToRefs (menuStore )
48
48
const favoriteStore = useFavoriteStore ()
49
49
const { favoritesIds, favoriteAddresses, favoriteFeatures, favoriteCount } = storeToRefs (favoriteStore )
50
- const { config, settings, contents } = useSiteStore ()
50
+ const siteStore = useSiteStore ()
51
+ const { config, settings, contents } = siteStore
52
+ const { favoritesModeEnabled } = storeToRefs (siteStore )
51
53
const { $tracking } = useNuxtApp ()
52
54
const route = useRoute ()
53
55
const router = useRouter ()
@@ -141,10 +143,6 @@ onMounted(async () => {
141
143
//
142
144
// Computed
143
145
//
144
- const favoritesModeEnabled = computed (() => {
145
- return settings ! .themes [0 ]?.favorites_mode ?? true
146
- })
147
-
148
146
const isBottomMenuOpened = computed (() => {
149
147
return ((device .value .smallScreen && isPoiCardShown .value ) || isMenuItemOpen .value )
150
148
})
@@ -622,7 +620,6 @@ function handlePoiCardClose() {
622
620
"
623
621
:poi =" selectedFeature"
624
622
class =" tw-grow-0"
625
- :favorites-mode-enabled =" favoritesModeEnabled"
626
623
@explore-click =" toggleExploreAroundSelectedPoi(undefined)"
627
624
@favorite-click =" toggleFavorite"
628
625
@zoom-click =" goToSelectedFeature"
@@ -652,7 +649,6 @@ function handlePoiCardClose() {
652
649
"
653
650
:poi =" selectedFeature"
654
651
class =" tw-grow-0 tw-text-left tw-h-full"
655
- :favorites-mode-enabled =" favoritesModeEnabled"
656
652
@explore-click =" toggleExploreAroundSelectedPoi(undefined)"
657
653
@favorite-click =" toggleFavorite"
658
654
@zoom-click =" goToSelectedFeature"
0 commit comments