forked from MapComplete/MapComplete
Fix skipped question count
This commit is contained in:
parent
3efcc4d456
commit
a39d21a5a9
16 changed files with 3365 additions and 11 deletions
|
@ -49,7 +49,7 @@ export class ConfirmDialog extends UIElement {
|
|||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
if (!this._source.data) {
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ export class FeatureInfoBox extends UIElement {
|
|||
info.push(infobox);
|
||||
} else if (infobox.IsQuestioning()) {
|
||||
questions.push(infobox);
|
||||
} else {
|
||||
} else if(infobox.IsSkipped()){
|
||||
// This question is neither known nor questioning -> it was skipped
|
||||
skippedQuestions++;
|
||||
}
|
||||
|
|
|
@ -126,6 +126,10 @@ export class ImageCarousel extends TagDependantUIElement {
|
|||
IsQuestioning(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
IsSkipped(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
Priority(): number {
|
||||
return 0;
|
||||
|
|
|
@ -65,6 +65,10 @@ class ImageCarouselWithUpload extends TagDependantUIElement {
|
|||
IsQuestioning(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
IsSkipped(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
Priority(): number {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue