UX: fix #2275
This commit is contained in:
parent
1c7bd21c8d
commit
6e8d6c7bbe
2 changed files with 3 additions and 5 deletions
|
@ -106,15 +106,13 @@ export default class AllImageProviders {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a list of URLs, tries to detect the images. Used in e.g. the comments
|
* Given a list of URLs, tries to detect the images. Used in e.g. the comments
|
||||||
* @param url
|
|
||||||
*/
|
*/
|
||||||
public static loadImagesFrom(urls: string[]): Store<ProvidedImage[]> {
|
public static loadImagesFrom(urls: string[]): Store<ProvidedImage[]> {
|
||||||
const tags = {
|
const tags = {
|
||||||
id: "na",
|
id: urls.join(";"),
|
||||||
}
|
}
|
||||||
for (let i = 0; i < urls.length; i++) {
|
for (let i = 0; i < urls.length; i++) {
|
||||||
const url = urls[i]
|
tags["image:" + i] = urls[i]
|
||||||
tags["image:" + i] = url
|
|
||||||
}
|
}
|
||||||
return this.LoadImagesFor(new ImmutableStore(tags))
|
return this.LoadImagesFor(new ImmutableStore(tags))
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
})
|
})
|
||||||
.filter((link) => !link.startsWith("https://wiki.openstreetmap.org/wiki/File:"))
|
.filter((link) => !link.startsWith("https://wiki.openstreetmap.org/wiki/File:"))
|
||||||
|
|
||||||
const attributedImages = AllImageProviders.loadImagesFrom(images)
|
let attributedImages = AllImageProviders.loadImagesFrom(images)
|
||||||
/**
|
/**
|
||||||
* Class of the little icons indicating 'opened', 'comment' and 'resolved'
|
* Class of the little icons indicating 'opened', 'comment' and 'resolved'
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue