forked from MapComplete/MapComplete
Merging master
This commit is contained in:
commit
b329bbbdb3
4 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue