From c439cf63aa259168e904ba188774a448bb8d0933 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Thu, 27 Feb 2025 14:26:50 +0100
Subject: [PATCH] Show Menu-entry usersearch only with GMS_ACTIVE=true and
userlocation != null
---
frontend/src/components/Menu/Sidebar.vue | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/frontend/src/components/Menu/Sidebar.vue b/frontend/src/components/Menu/Sidebar.vue
index 706d0ead5..b5834f498 100644
--- a/frontend/src/components/Menu/Sidebar.vue
+++ b/frontend/src/components/Menu/Sidebar.vue
@@ -102,12 +102,14 @@
import CONFIG from '../../config'
import { useRoute } from 'vue-router'
import { ref, watch, computed } from 'vue'
+import { useStore } from 'vuex'
const props = defineProps({
shadow: { type: Boolean, default: true },
})
const emit = defineEmits(['closeSidebar'])
+const store = useStore()
const route = useRoute()
const communityLink = ref(null)
@@ -122,7 +124,7 @@ const isHumhub = computed(() => {
return CONFIG.HUMHUB_ACTIVE === 'true'
})
const isGMS = computed(() => {
- return CONFIG.GMS_ACTIVE === 'true'
+ return CONFIG.GMS_ACTIVE === 'true' && store.state.userLocation !== null
})
watch(