Skip to content

Commit

Permalink
Only add default check job if any output active
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Feb 3, 2025
1 parent ffe48aa commit 367499e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ into a workflow will be shown in gray.</p>
<%
cls = "toolForm"
tool_name = "Unknown"
checked_job = "checked" if any(True for d in datasets if not d[1].deleted) else ""
if hasattr( job, 'is_fake' ) and job.is_fake:
cls += " toolFormDisabled"
disabled = True
Expand Down Expand Up @@ -142,7 +143,10 @@ into a workflow will be shown in gray.</p>
%if disabled:
<div style="font-style: italic; color: gray">${disabled_why}</div>
%else:
<div><input type="checkbox" name="job_ids" value="${job.id}" checked="true" />Include "${tool_name}" in workflow</div>
<div><input type="checkbox" name="job_ids" value="${job.id}" ${checked_job} />Include "${tool_name}" in workflow</div>
%if not checked_job:
${ render_msg( "All outputs of job have been deleted", status="info" ) }
%endif
%if tool_version_warning:
${ render_msg( tool_version_warning, status="warning" ) }
%endif
Expand Down

0 comments on commit 367499e

Please sign in to comment.