Remove legacy protocol links [SCI-7323]

This commit is contained in:
Martin Artnik 2022-10-12 11:01:16 +02:00
parent e96ccdb1d5
commit b67bea81b8
3 changed files with 3 additions and 3 deletions

View file

@ -241,7 +241,7 @@ module Dashboard
when 'Project'
project_path(object_id)
when 'Protocol'
edit_protocol_path(object_id)
protocol_path(object_id)
when 'RepositoryBase'
repository_path(object_id)
when 'Report'

View file

@ -1,6 +1,6 @@
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.close" %></button>
<% if can_manage_protocol_in_repository?(@protocol) %>
<%= route_to_other_team_btn edit_protocol_path(protocol),
<%= route_to_other_team_btn protocol_path(protocol),
protocol.team,
t('general.edit') %>
<% end %>

View file

@ -13,7 +13,7 @@
text %>
<% end %>
<% elsif can_manage_protocol_in_repository?(step.protocol) %>
<%= route_to_other_team edit_protocol_path(step.protocol),
<%= route_to_other_team protocol_path(step.protocol),
step.protocol.team,
text %>
<% else %>