forked from MapComplete/MapComplete
		
	UX: update gps-label indication if GPS is not available physically
This commit is contained in:
		
							parent
							
								
									0c3cfdc034
								
							
						
					
					
						commit
						d41afe7688
					
				
					 6 changed files with 79 additions and 29 deletions
				
			
		|  | @ -14,6 +14,7 @@ | |||
|   let allowMoving = geolocationstate.allowMoving | ||||
|   let currentGPSLocation = state.geolocation.geolocationState.currentGPSLocation | ||||
|   let geolocationControlState = state.geolocationControl | ||||
|   let isAvailable = state.geolocation.geolocationState.gpsAvailable | ||||
|   let lastClickWasRecent = geolocationControlState.lastClickWithinThreeSecs | ||||
| </script> | ||||
| 
 | ||||
|  | @ -31,7 +32,7 @@ | |||
| {:else if $geopermission === "requested"} | ||||
|   <!-- Even though disabled, when clicking we request the location again in case the contributor dismissed the location popup --> | ||||
|   <Location class="h-8 w-8" style="animation: 3s linear 0s infinite normal none running spin;" /> | ||||
| {:else if $geopermission === "denied"} | ||||
| {:else if $geopermission === "denied" || !$isAvailable} | ||||
|   <Location_refused class="h-8 w-8" /> | ||||
| {:else} | ||||
|   <Location class="h-8 w-8" style="animation: 3s linear 0s infinite normal none running spin;" /> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue