Attempt to fix geolocation text
This commit is contained in:
parent
3ebe1293e0
commit
85eac17b18
2 changed files with 7 additions and 8 deletions
|
@ -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",
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue