forked from MapComplete/MapComplete
Small fixes, perf improvements, remove duplicate images of ghost bikes, add wall mount
This commit is contained in:
parent
9978879536
commit
e74b4e3804
13 changed files with 57 additions and 26 deletions
|
@ -40,7 +40,6 @@ export class FeatureInfoBox extends UIElement {
|
|||
}
|
||||
|
||||
InnerRender(): string {
|
||||
console.error("Inner rendering infobox for ", this._tags.data.id, this.id)
|
||||
return new Combine([
|
||||
new Combine([this._title, this._titleIcons])
|
||||
.SetClass("featureinfobox-titlebar"),
|
||||
|
|
|
@ -9,6 +9,7 @@ import {SubstitutedTranslation} from "../SpecialVisualizations";
|
|||
export default class TagRenderingAnswer extends UIElement {
|
||||
private _tags: UIEventSource<any>;
|
||||
private _configuration: TagRenderingConfig;
|
||||
private _content: UIElement;
|
||||
|
||||
constructor(tags: UIEventSource<any>, configuration: TagRenderingConfig) {
|
||||
super(tags);
|
||||
|
@ -31,7 +32,9 @@ export default class TagRenderingAnswer extends UIElement {
|
|||
if (tr === undefined) {
|
||||
return "";
|
||||
}
|
||||
return new SubstitutedTranslation(tr, this._tags).Render();
|
||||
// Bit of a hack; remember that the fields are updated
|
||||
this._content = new SubstitutedTranslation(tr, this._tags);
|
||||
return this._content.Render();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue