forked from MapComplete/MapComplete
Huge refactorings of JSON-parsing and Tagsfilter, other cleanups, warning cleanups and lots of small subtle bugfixes
This commit is contained in:
parent
9a5b35b9f3
commit
a57b7d93fa
113 changed files with 1565 additions and 2594 deletions
|
@ -11,6 +11,7 @@ import {
|
|||
TagDependantUIElementConstructor
|
||||
} from "../../Customizations/UIElementConstructor";
|
||||
import {State} from "../../State";
|
||||
import Translation from "../i18n/Translation";
|
||||
|
||||
export class ImageCarouselConstructor implements TagDependantUIElementConstructor{
|
||||
IsKnown(properties: any): boolean {
|
||||
|
@ -29,8 +30,8 @@ export class ImageCarouselConstructor implements TagDependantUIElementConstructo
|
|||
return new ImageCarousel(dependencies.tags);
|
||||
}
|
||||
|
||||
GetContent(tags: any): string {
|
||||
return undefined;
|
||||
GetContent(tags: any): Translation {
|
||||
return new Translation({"en":"Images without upload"});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import {ImageCarousel} from "./ImageCarousel";
|
|||
import {ImageUploadFlow} from "../ImageUploadFlow";
|
||||
import {OsmImageUploadHandler} from "../../Logic/Osm/OsmImageUploadHandler";
|
||||
import {State} from "../../State";
|
||||
import Translation from "../i18n/Translation";
|
||||
|
||||
export class ImageCarouselWithUploadConstructor implements TagDependantUIElementConstructor{
|
||||
IsKnown(properties: any): boolean {
|
||||
|
@ -25,8 +26,8 @@ export class ImageCarouselWithUploadConstructor implements TagDependantUIElement
|
|||
return new ImageCarouselWithUpload(dependencies);
|
||||
}
|
||||
|
||||
GetContent(tags: any): string {
|
||||
return undefined;
|
||||
GetContent(tags: any): Translation {
|
||||
return new Translation({"en":"Image carousel with uploader"});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +39,6 @@ class ImageCarouselWithUpload extends TagDependantUIElement {
|
|||
super(dependencies.tags);
|
||||
const tags = dependencies.tags;
|
||||
this._imageElement = new ImageCarousel(tags);
|
||||
const userDetails = State.state.osmConnection.userDetails;
|
||||
const license = State.state.osmConnection.GetPreference( "pictures-license");
|
||||
this._pictureUploader = new OsmImageUploadHandler(tags, license, this._imageElement.slideshow).getUI();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue