Commit 52883560 authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

views/sample_set/index.html: Allow to launch process depending on pre-process

We don't want to allow launching an analysis while one of the file is still uploading (which is the
case with a pre-process with two files). Thus to be able to launch a process we expect either
to have no pre-process or to have one but already finished. We allow to launch a process even
if the pre-process failed to prevent the user from being blocked (he/she can still analyse
the R1 file).
parent 3ce1da36
Pipeline #124754 failed with stages
in 13 minutes and 13 seconds
......@@ -137,7 +137,7 @@
<td></td><td></td><td></td><td></td>
{{pass}}
<td>
{{if row.sequence_file.data_file != None and ( row.results_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED") ):}}
{{if row.sequence_file.data_file != None and ( row.results_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED") ) and (not has_pre_process or row.sequence_file.pre_process_flag in ("COMPLETED", "FAILED")) :}}
{{if auth.can_process_sample_set(request.vars['id']) and (config_id > 0 and auth.can_use_config(config_id)) :}}
<span class="pointer" onclick="db.call('default/run_request', { 'sequence_file_id' : '{{=row.sequence_file.id}}', 'sample_set_id' : {{=request.vars["id"]}}, 'config_id' : {{=config_id}} } )"><i class="icon-cog-2" title="Run the selected configuration for this file"></i></span>
{{pass}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment