From 7bc31905b52ffa3a2db9e4ce7e23b84d6500cf87 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 23 Sep 2020 12:54:16 +0200 Subject: [PATCH] Fix protocol import modal --- app/views/steps/_step.html.erb | 35 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/app/views/steps/_step.html.erb b/app/views/steps/_step.html.erb index bd100d137..c3b61140d 100644 --- a/app/views/steps/_step.html.erb +++ b/app/views/steps/_step.html.erb @@ -27,24 +27,25 @@
- <% if step.completed? %> - - <% else %> - + <% unless preview %> + <% if step.completed? %> + + <% else %> + + <% 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',