This commit is contained in:
clauspeterhuebner 2025-03-28 01:45:30 +01:00
parent 10fe4d94bd
commit 7a4a989348
4 changed files with 15 additions and 30 deletions

View File

@ -33,16 +33,11 @@
>
{{ $t('card-user-search.allowed.disabled-button') }}
</BButton>
<BButton
v-else
variant="gradido"
:href="gmsUri"
target="_blank"
>
<BButton v-else variant="gradido" :href="gmsUri" target="_blank">
{{ $t('card-user-search.allowed.button') }}
</BButton>
</div>
<div v-else>
<div v-else>
<RouterLink to="/settings/extern">
<BButton variant="gradido">
{{ $t('card-user-search.not-allowed.button') }}
@ -67,11 +62,17 @@ const { toastError } = useAppToast()
const store = useStore()
const gmsUri = ref('not initialized')
console.log('store.state: gmsAllowed userLocation=', store.state.gmsAllowed, store.state.userLocation)
/*
console.log(
'store.state: gmsAllowed userLocation=',
store.state.gmsAllowed,
store.state.userLocation,
)
*/
const gmsAllowed = store.state.gmsAllowed
console.log('gmsAllowed=', gmsAllowed)
// console.log('gmsAllowed=', gmsAllowed)
const gmsUserLocationExists = store.state.userLocation !== null
console.log('gmsUserLocationExists=', gmsUserLocationExists)
// console.log('gmsUserLocationExists=', gmsUserLocationExists)
const isUserSearchDisabled = computed(() => gmsUri.value !== null)
const { onResult, result, loading, onError } = useQuery(authenticateGmsUserSearch)

View File

@ -26,9 +26,9 @@ const store = useStore()
const { toastError, toastSuccess } = useAppToast()
const selectedOption = ref(
store.state.gmsPublishLocation === 'GMS_LOCATION_TYPE_RANDOM' ?
'GMS_LOCATION_TYPE_APPROXIMATE' :
store.state.gmsPublishLocation
store.state.gmsPublishLocation === 'GMS_LOCATION_TYPE_RANDOM'
? 'GMS_LOCATION_TYPE_APPROXIMATE'
: store.state.gmsPublishLocation,
)
const dropdownOptions = [
{

View File

@ -28,13 +28,11 @@ export default {
},
computed: {
isGmsActive() {
console.log('isGmsActive=', CONFIG.GMS_ACTIVE)
return CONFIG.GMS_ACTIVE === true
},
isHumhubActive() {
console.log('isHumhubActive=', CONFIG.HUMHUB_ACTIVE)
return CONFIG.HUMHUB_ACTIVE === true
},
}
},
}
</script>

View File

@ -238,24 +238,10 @@ const isHumhubActivated = computed(() => {
return humhubAllowed.value === true
})
<<<<<<< HEAD
const isGMS = computed(() => {
return CONFIG.GMS_ACTIVE === true
})
const isHumhub = computed(() => {
return CONFIG.HUMHUB_ACTIVE === true
})
const isCommunityService = computed(() => {
return isGMS.value || isHumhub.value
})
=======
// setting if gms and/or humhub are enabled in frontend config .env
const isGMS = CONFIG.GMS_ACTIVE
const isHumhub = CONFIG.HUMHUB_ACTIVE
const isCommunityService = isGMS || isHumhub
>>>>>>> ed90d6ae7ffa23a6d5c073a5d7bc3c42668fc51d
const { mutate: updateUserData } = useMutation(updateUserInfos)