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)))
|
||||
)
|
||||
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]
|
||||
for (let i = 0; i < 10; i++) {
|
||||
result.push(k + ":" + i)
|
||||
}
|
||||
return result
|
||||
})
|
||||
}))
|
||||
)
|
||||
let usernamesSet = new Set(onlyShowUsername)
|
||||
let allDiffs: Store<
|
||||
|
@ -42,7 +42,7 @@
|
|||
{:else if $addedImages.length === 0}
|
||||
No images added by this contributor
|
||||
{:else}
|
||||
<div class="flex">
|
||||
<div class="flex gap-x-2 flex-wrap">
|
||||
{#each $addedImages as imgDiff}
|
||||
<div class="h-48 w-48">
|
||||
<AttributedPanoramaxImage hash={imgDiff.value} />
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
let showBigPreview = new UIEventSource(false)
|
||||
onDestroy(
|
||||
showBigPreview.addCallbackAndRun((shown) => {
|
||||
state.guistate.setPreviewedImage(shown ? image : undefined)
|
||||
state?.guistate?.setPreviewedImage(shown ? image : undefined)
|
||||
})
|
||||
)
|
||||
if (previewedImage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue