From d389b7dbedb1dd2c9988399dce461589b0bab867 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 22 Aug 2024 16:18:35 +0800 Subject: [PATCH] problem: the sub-problems are not directly listed under the problem tab --- .../novoproblems/ProblemView.svelte | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) 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"}