diff --git a/src/components/novoproblems/ProblemView.svelte b/src/components/novoproblems/ProblemView.svelte index e6f9ee6..c685fb5 100644 --- a/src/components/novoproblems/ProblemView.svelte +++ b/src/components/novoproblems/ProblemView.svelte @@ -362,6 +362,29 @@ currentUserCanModify={$currentUserCanModify} {problem} /> + {#if problem.FullChildren.size > 0} +

+ Sub-Problems +

+ {#each problem.FullChildren as [_, child]} + {#if childProblemFilter}{#if child.FullTextSearch(childProblemFilter) > 0.65} + {/if} + {#each child.getDescendants($consensusTipState) as [_, subproblem]} + {#if subproblem.FullTextSearch(childProblemFilter) > 0.65} + {/if} + {/each} + {:else} + {#if child.Status != "closed"} + + {/if} + {/if}{/each} + {/if} {/if} {#if $selectedTab == "sub-problems"}