forked from MapComplete/MapComplete
		
	Fix: inspector: fix AggregateImages.svelte
This commit is contained in:
		
							parent
							
								
									14fd4e0f4f
								
							
						
					
					
						commit
						e2e3e4b51d
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -15,13 +15,13 @@ | ||||||
|     Promise.all(features.map((f) => downloader.downloadHistory(f.properties.id))) |     Promise.all(features.map((f) => downloader.downloadHistory(f.properties.id))) | ||||||
|   ) |   ) | ||||||
|   let imageKeys = new Set( |   let imageKeys = new Set( | ||||||
|     ...["panoramax", "image:streetsign", "image:menu"].map((k) => { |     [].concat(...["panoramax", "image:streetsign", "image:menu", "toilets:wheelchair:panoramax"].map((k) => { | ||||||
|       const result: string[] = [k] |       const result: string[] = [k] | ||||||
|       for (let i = 0; i < 10; i++) { |       for (let i = 0; i < 10; i++) { | ||||||
|         result.push(k + ":" + i) |         result.push(k + ":" + i) | ||||||
|       } |       } | ||||||
|       return result |       return result | ||||||
|     }) |     })) | ||||||
|   ) |   ) | ||||||
|   let usernamesSet = new Set(onlyShowUsername) |   let usernamesSet = new Set(onlyShowUsername) | ||||||
|   let allDiffs: Store< |   let allDiffs: Store< | ||||||
|  | @ -42,7 +42,7 @@ | ||||||
| {:else if $addedImages.length === 0} | {:else if $addedImages.length === 0} | ||||||
|   No images added by this contributor |   No images added by this contributor | ||||||
| {:else} | {:else} | ||||||
|   <div class="flex"> |   <div class="flex gap-x-2 flex-wrap"> | ||||||
|     {#each $addedImages as imgDiff} |     {#each $addedImages as imgDiff} | ||||||
|       <div class="h-48 w-48"> |       <div class="h-48 w-48"> | ||||||
|         <AttributedPanoramaxImage hash={imgDiff.value} /> |         <AttributedPanoramaxImage hash={imgDiff.value} /> | ||||||
|  |  | ||||||
|  | @ -45,7 +45,7 @@ | ||||||
|   let showBigPreview = new UIEventSource(false) |   let showBigPreview = new UIEventSource(false) | ||||||
|   onDestroy( |   onDestroy( | ||||||
|     showBigPreview.addCallbackAndRun((shown) => { |     showBigPreview.addCallbackAndRun((shown) => { | ||||||
|       state.guistate.setPreviewedImage(shown ? image : undefined) |       state?.guistate?.setPreviewedImage(shown ? image : undefined) | ||||||
|     }) |     }) | ||||||
|   ) |   ) | ||||||
|   if (previewedImage) { |   if (previewedImage) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue