|
131 | 131 | return argsSchemaVersion && SUPPORTED_SCHEMA_VERSIONS.includes(argsSchemaVersion); |
132 | 132 | } |
133 | 133 |
|
134 | | - $: showNonParallelTitle = |
| 134 | + $: hasNonParallelArgs = |
135 | 135 | !workflowTask.is_legacy_task && |
136 | 136 | workflowTask.task.args_schema_non_parallel && |
137 | 137 | Object.keys( |
138 | 138 | stripSchemaProperties(workflowTask.task.args_schema_non_parallel, workflowTask.is_legacy_task) |
139 | 139 | .properties |
140 | 140 | ).length; |
141 | 141 |
|
142 | | - $: showParallelTitle = |
| 142 | + $: hasParallelArgs = |
143 | 143 | argsSchemaParallel && |
144 | 144 | Object.keys(stripSchemaProperties(argsSchemaParallel, workflowTask.is_legacy_task).properties) |
145 | 145 | .length; |
|
148 | 148 | <div id="workflow-arguments-schema-panel"> |
149 | 149 | <div id="json-schema-validation-errors" /> |
150 | 150 | {#if workflowTask.task_type === 'non_parallel' || workflowTask.task_type === 'compound'} |
151 | | - {#if showNonParallelTitle} |
| 151 | + {#if hasNonParallelArgs && hasParallelArgs} |
152 | 152 | <h5 class="ps-2 mt-3">Initialisation Parameters</h5> |
153 | 153 | {/if} |
154 | 154 | {#if !workflowTask.is_legacy_task && workflowTask.task.args_schema_non_parallel && isSchemaValid} |
|
171 | 171 | </div> |
172 | 172 | {/if} |
173 | 173 | {/if} |
174 | | - {#if workflowTask.task_type === 'compound' && showParallelTitle} |
| 174 | + {#if hasNonParallelArgs && hasParallelArgs} |
175 | 175 | <hr /> |
176 | 176 | {/if} |
177 | 177 | {#if workflowTask.task_type === 'parallel' || workflowTask.task_type === 'compound'} |
178 | | - {#if showParallelTitle} |
| 178 | + {#if hasParallelArgs && hasNonParallelArgs} |
179 | 179 | <h5 class="ps-2 mt-3">Compute Parameters</h5> |
180 | 180 | {/if} |
181 | 181 | {#if argsSchemaParallel && isSchemaValid} |
|
198 | 198 | </div> |
199 | 199 | {/if} |
200 | 200 | {/if} |
201 | | - {#if !showNonParallelTitle && !showParallelTitle} |
| 201 | + {#if !hasNonParallelArgs && !hasParallelArgs} |
202 | 202 | <p class="mt-3 ps-3">No arguments</p> |
203 | 203 | {/if} |
204 | 204 | <div class="d-flex jschema-controls-bar p-3"> |
|
0 commit comments