Attempt to fix geolocation text

This commit is contained in:
Pieter Vander Vennet 2024-08-12 13:33:56 +02:00
parent 3ebe1293e0
commit 85eac17b18
2 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{
"name": "mapcomplete",
"version": "0.45.1",
"version": "0.45.2",
"repository": "https://github.com/pietervdvn/MapComplete",
"description": "A small website to edit OSM easily",
"bugs": "https://github.com/pietervdvn/MapComplete/issues",

View file

@ -105,9 +105,15 @@ export class GeoLocationState {
this.gpsStateExplanation = this.gpsAvailable.map(available => {
if (this.currentGPSLocation.data !== undefined) {
if (!this.allowMoving.data) {
return Translations.t.general.visualFeedback.islocked
}
return Translations.t.general.labels.jumpToLocation
}
if (!available) {
return Translations.t.general.labels.locationNotAvailable
}
@ -120,13 +126,6 @@ export class GeoLocationState {
if (this.permission.data === "requested") {
return Translations.t.general.waitingForGeopermission
}
if (!this.allowMoving.data) {
return Translations.t.general.visualFeedback.islocked
}
return Translations.t.general.waitingForLocation
}, [this.allowMoving, this.permission, this.currentGPSLocation])