forked from MapComplete/MapComplete
Remove all roaming tagRenderings
This commit is contained in:
parent
4153193500
commit
5806848dc8
4 changed files with 48 additions and 10 deletions
|
@ -62,6 +62,9 @@ export default class TagRenderingConfig {
|
|||
this.render = Translations.T(json.render, context + ".render");
|
||||
this.question = Translations.T(json.question, context + ".question");
|
||||
this.roaming = json.roaming ?? false;
|
||||
if(this.roaming){
|
||||
console.warn("Deprecation notice: roaming renderings will be scrapped.", this.id, context)
|
||||
}
|
||||
const condition = TagUtils.Tag(json.condition ?? {"and": []}, `${context}.condition`);
|
||||
if (this.roaming && conditionIfRoaming !== undefined) {
|
||||
this.condition = new And([condition, conditionIfRoaming]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue