disable UserSearch-Button on failed gmsAuthentication

This commit is contained in:
clauspeterhuebner 2025-03-24 22:56:10 +01:00
parent 2ed9460f21
commit c7e3141d2c

View File

@ -23,7 +23,7 @@
<BRow class="my-1">
<BCol cols="12">
<div class="text-lg-end">
<BButton v-if="gmsUserLocationExists" variant="gradido" :href="gmsUri" target="_blank">
<BButton v-if="gmsUserLocationExists" :disabled="isUserSearchDisabled" variant="gradido" :href="gmsUri" target="_blank">
{{ $t('card-user-search.allowed.button') }}
</BButton>
<RouterLink v-else to="/settings/extern">
@ -54,6 +54,7 @@ const gmsActive = store.state.gmsActive
// console.log('gmsActive=', gmsActive)
const gmsUserLocationExists = store.state.userLocation !== null
// console.log('gmsUserLocationExists=', gmsUserLocationExists)
const isUserSearchDisabled = computed(() => gmsUri.value !== null)
const { onResult, result, loading, onError } = useQuery(authenticateGmsUserSearch)