forked from MapComplete/MapComplete
Change quest descriptions and orders in order to improve data quality
This commit is contained in:
parent
49cab66a72
commit
6828699a4c
11 changed files with 77 additions and 13 deletions
|
@ -77,7 +77,7 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
IsQuestioning(tags: any): boolean {
|
||||
const tagsKV = TagUtils.proprtiesToKV(tags);
|
||||
|
||||
for (const oneOnOneElement of this.options.mappings) {
|
||||
for (const oneOnOneElement of this.options.mappings ?? []) {
|
||||
if (oneOnOneElement.k === null || oneOnOneElement.k.matches(tagsKV)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -97,6 +97,14 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
return new TagRendering(tags, changes, this.options);
|
||||
}
|
||||
|
||||
IsKnown(properties: any): boolean {
|
||||
return !this.IsQuestioning(properties);
|
||||
}
|
||||
|
||||
Priority(): number {
|
||||
return this.options.priority ?? 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class TagRendering extends UIElement implements TagDependantUIElement {
|
||||
|
@ -285,7 +293,7 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
if (isEditing) {
|
||||
return "<span class='skip-button'>Annuleren</span>";
|
||||
} else {
|
||||
return "<span class='skip-button'>Ik weet het niet zeker...</span>";
|
||||
return "<span class='skip-button'>Overslaan (Ik weet het niet zeker...)</span>";
|
||||
}
|
||||
});
|
||||
// And at last, set up the skip button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue