forked from MapComplete/MapComplete
		
	Merge branch 'develop' into feature/360-view
This commit is contained in:
		
						commit
						fa9e61c2b5
					
				
					 230 changed files with 45510 additions and 33214 deletions
				
			
		|  | @ -88,8 +88,7 @@ | |||
|     image={providedImage} | ||||
|     imgClass="max-h-64 w-auto sm:h-32 md:h-64" | ||||
|     attributionFormat="minimal" | ||||
|   > | ||||
|   </AttributedImage> | ||||
|   /> | ||||
|   <LoginToggle {state} silentFail={true}> | ||||
|     {#if linkable} | ||||
|       <label> | ||||
|  |  | |||
|  | @ -24,16 +24,20 @@ | |||
| 
 | ||||
|   let enableLogin = state.featureSwitches.featureSwitchEnableLogin | ||||
|   export let shown = new UIEventSource(false) | ||||
|   onDestroy(MenuState.nearbyImagesFeature.addCallback(something => { | ||||
|     if (something !== feature) { | ||||
|       shown.set(false) | ||||
|     } | ||||
|   })) | ||||
|   onDestroy(shown.addCallbackAndRun(isShown => { | ||||
|     if (isShown) { | ||||
|       MenuState.nearbyImagesFeature.set(feature) | ||||
|     } | ||||
|   })) | ||||
|   onDestroy( | ||||
|     MenuState.nearbyImagesFeature.addCallback((something) => { | ||||
|       if (something !== feature) { | ||||
|         shown.set(false) | ||||
|       } | ||||
|     }) | ||||
|   ) | ||||
|   onDestroy( | ||||
|     shown.addCallbackAndRun((isShown) => { | ||||
|       if (isShown) { | ||||
|         MenuState.nearbyImagesFeature.set(feature) | ||||
|       } | ||||
|     }) | ||||
|   ) | ||||
| </script> | ||||
| 
 | ||||
| {#if enableLogin.data} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue