@@ -23,20 +23,32 @@
-
- {{ $t('card-user-search.allowed.button') }}
-
-
-
- {{ $t('card-user-search.not-allowed.button') }}
+
+
+ {{ $t('card-user-search.allowed.disabled-button') }}
-
+
+ {{ $t('card-user-search.allowed.button') }}
+
+
+
+
+
+ {{ $t('card-user-search.not-allowed.button') }}
+
+
+
@@ -55,25 +67,25 @@ const { toastError } = useAppToast()
const store = useStore()
const gmsUri = ref('not initialized')
-// console.log('store.state: gmsActive gmsAllowed userLocation=', store.state.gmsActive, store.state.gmsAllowed, store.state.userLocation)
-const gmsActive = store.state.gmsActive
-// console.log('gmsActive=', gmsActive)
+console.log('store.state: gmsAllowed userLocation=', store.state.gmsAllowed, store.state.userLocation)
+const gmsAllowed = store.state.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)
onResult(({ data }) => {
- if (gmsActive && gmsUserLocationExists && data !== undefined) {
+ if (gmsAllowed && gmsUserLocationExists && data !== undefined) {
gmsUri.value = `${data.authenticateGmsUserSearch.url}?accesstoken=${data.authenticateGmsUserSearch.token}`
}
})
onError(() => {
- if (gmsActive && gmsUserLocationExists) {
+ if (gmsAllowed && gmsUserLocationExists) {
toastError('authenticateGmsUserSearch failed!')
- } else if (gmsActive && !gmsUserLocationExists) {
+ } else if (gmsAllowed && !gmsUserLocationExists) {
// toastError('capture your location first!')
// eslint-disable-next-line no-console
console.log('capture your location first...')
@@ -86,6 +98,6 @@ onError(() => {
background-position: left;
background-repeat: no-repeat;
background-size: 380px 180px;
- background-image: url('/img/svg/usersearchmap6.jpg') !important;
+ background-image: url('/img/svg/usersearchmap5.jpg') !important;
}