Merge pull request #2866 from urbanrotnik/ur-sci-5053

Fix protocol import modal [SCI-5053]
This commit is contained in:
Urban Rotnik 2020-09-23 13:19:23 +02:00 committed by GitHub
commit 33d53c958d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@
</a>
</div>
<div class="panel-options pull-right">
<% unless preview %>
<% if step.completed? %>
<button data-action="uncomplete-step"
data-link-url="<%= toggle_step_state_step_path(step)%>"
@ -44,7 +45,7 @@
<%= t("protocols.steps.options.complete_title") %>
</button>
<% end %>
<% end %>
<% if (can_manage_protocol_in_module?(@protocol) || can_manage_protocol_in_repository?(@protocol)) && !(preview) %>
<%= link_to(move_up_step_path(step),
class: 'btn btn-light icon-btn',