forked from MapComplete/MapComplete
		
	UX: hide 'move this point' behind login wall
This commit is contained in:
		
							parent
							
								
									64372aa664
								
							
						
					
					
						commit
						0e0d4a9af5
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -18,6 +18,7 @@
 | 
				
			||||||
  import Geosearch from "../BigComponents/Geosearch.svelte"
 | 
					  import Geosearch from "../BigComponents/Geosearch.svelte"
 | 
				
			||||||
  import If from "../Base/If.svelte"
 | 
					  import If from "../Base/If.svelte"
 | 
				
			||||||
  import Constants from "../../Models/Constants"
 | 
					  import Constants from "../../Models/Constants"
 | 
				
			||||||
 | 
					  import LoginToggle from "../Base/LoginToggle.svelte"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  export let state: SpecialVisualizationState
 | 
					  export let state: SpecialVisualizationState
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,7 +50,7 @@
 | 
				
			||||||
  let notAllowed = moveWizardState.moveDisallowedReason
 | 
					  let notAllowed = moveWizardState.moveDisallowedReason
 | 
				
			||||||
  let currentMapProperties: MapProperties = undefined
 | 
					  let currentMapProperties: MapProperties = undefined
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					<LoginToggle {state}>
 | 
				
			||||||
{#if moveWizardState.reasons.length > 0}
 | 
					{#if moveWizardState.reasons.length > 0}
 | 
				
			||||||
  {#if $notAllowed}
 | 
					  {#if $notAllowed}
 | 
				
			||||||
    <div class="m-2 flex rounded-lg bg-gray-200 p-2">
 | 
					    <div class="m-2 flex rounded-lg bg-gray-200 p-2">
 | 
				
			||||||
| 
						 | 
					@ -165,3 +166,4 @@
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  {/if}
 | 
					  {/if}
 | 
				
			||||||
{/if}
 | 
					{/if}
 | 
				
			||||||
 | 
					</LoginToggle>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -88,7 +88,6 @@ import MaprouletteSetStatus from "./MapRoulette/MaprouletteSetStatus.svelte"
 | 
				
			||||||
import DirectionIndicator from "./Base/DirectionIndicator.svelte"
 | 
					import DirectionIndicator from "./Base/DirectionIndicator.svelte"
 | 
				
			||||||
import Img from "./Base/Img"
 | 
					import Img from "./Base/Img"
 | 
				
			||||||
import Qr from "../Utils/Qr"
 | 
					import Qr from "../Utils/Qr"
 | 
				
			||||||
import { log } from "node:util"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class NearbyImageVis implements SpecialVisualization {
 | 
					class NearbyImageVis implements SpecialVisualization {
 | 
				
			||||||
    // Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
 | 
					    // Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue