Fix: inspector: fix AggregateImages.svelte

This commit is contained in:
Pieter Vander Vennet 2025-05-09 15:35:38 +02:00
parent 0c95b1ba1c
commit 5319412dac
2 changed files with 4 additions and 4 deletions

View file

@ -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} />

View file

@ -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) {