Merging master

This commit is contained in:
Pieter Vander Vennet 2020-11-12 12:25:36 +01:00
commit b329bbbdb3
4 changed files with 9 additions and 3 deletions

View file

@ -35,11 +35,14 @@ export default class EditableTagRendering extends UIElement {
if (this._configuration.question !== undefined) {
// 2.3em total width
if(State.state.featureSwitchUserbadge.data){
this._editButton =
Svg.pencil_ui().SetClass("edit-button")
.onClick(() => {
self._editMode.setData(true);
});
}
// And at last, set up the skip button

View file

@ -34,6 +34,9 @@ export class FeatureInfoBox extends UIElement {
layerConfig.titleIcons.map(icon => new TagRenderingAnswer(tags, icon)))
.SetClass("featureinfobox-icons");
this._renderings = layerConfig.tagRenderings.map(tr => new EditableTagRendering(tags, tr));
if (State.state.featureSwitchUserbadge.data) {
this._questionBox = new QuestionBox(tags, layerConfig.tagRenderings);
}
}
InnerRender(): string {