mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Show Menu-entry usersearch only with GMS_ACTIVE=true and userlocation !=
null
This commit is contained in:
parent
4cb77cd6c2
commit
c439cf63aa
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user