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
|
|
@ -64,7 +64,7 @@ class OnlyShowIf extends UIElement implements TagDependantUIElement {
|
|||
return this._filter.matches(TagUtils.proprtiesToKV(this._source.data));
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
if (this.Matches()) {
|
||||
return this._embedded.Render();
|
||||
} else {
|
||||
|
|
@ -82,6 +82,13 @@ class OnlyShowIf extends UIElement implements TagDependantUIElement {
|
|||
}
|
||||
return this._embedded.IsKnown();
|
||||
}
|
||||
|
||||
IsSkipped(): boolean {
|
||||
if(!this.Matches()){
|
||||
return false;
|
||||
}
|
||||
return this._embedded.IsSkipped();
|
||||
}
|
||||
|
||||
IsQuestioning(): boolean {
|
||||
if(!this.Matches()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue