mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
use computed for react on changing state
This commit is contained in:
parent
f8db3a86b7
commit
8552649c94
@ -69,9 +69,10 @@ console.log(
|
||||
store.state.userLocation,
|
||||
)
|
||||
*/
|
||||
const gmsAllowed = store.state.gmsAllowed
|
||||
// use computed to react on state change, when user goes to settings and change something an get back here
|
||||
const gmsAllowed = computed(() => store.state.gmsAllowed)
|
||||
// console.log('gmsAllowed=', gmsAllowed)
|
||||
const gmsUserLocationExists = store.state.userLocation !== null
|
||||
const gmsUserLocationExists = computed(() => store.state.userLocation !== null)
|
||||
// console.log('gmsUserLocationExists=', gmsUserLocationExists)
|
||||
const isUserSearchDisabled = computed(() => gmsUri.value === null)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user