forked from MapComplete/MapComplete
Small fixes
This commit is contained in:
parent
ca5b4297b3
commit
1f41444726
5 changed files with 13 additions and 13 deletions
|
|
@ -133,13 +133,14 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
this._appliedTags = new VariableUiElement(
|
||||
self._questionElement.GetValue().map(
|
||||
(tags: TagsFilter) => {
|
||||
if (tags === undefined) {
|
||||
return Translations.t.general.noTagsSelected.SetClass("subtle").Render();
|
||||
}
|
||||
const csCount = State.state?.osmConnection?.userDetails?.data?.csCount ?? 1000;
|
||||
if (csCount < State.userJourney.tagsVisibleAt) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (tags === undefined) {
|
||||
return Translations.t.general.noTagsSelected.SetClass("subtle").Render();
|
||||
}
|
||||
if (csCount < State.userJourney.tagsVisibleAndWikiLinked) {
|
||||
const tagsStr = tags.asHumanString(false, true);
|
||||
return new FixedUiElement(tagsStr).SetClass("subtle").Render();
|
||||
|
|
@ -360,12 +361,11 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return new TextField({
|
||||
placeholder: this._freeform.placeholder,
|
||||
fromString: pickString,
|
||||
toString: toString
|
||||
toString: toString,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue