Fix publish-draft button [SCI-9953] (#6957)

This commit is contained in:
ivanscinote 2024-01-26 15:22:18 +01:00 committed by GitHub
parent 9b3f107d13
commit a719ceb247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,10 @@
</div>
<div class="protocol-actions">
<% if can_publish_protocol_in_repository?(draft) %>
<%= button_to publish_protocol_path(draft), class: "btn btn-light publish-draft", method: :post do %>
<%= button_to publish_protocol_path(draft),
params: { view: 'show' },
class: 'btn btn-light publish-draft',
method: :post do %>
<%= image_tag 'icon_small/publish.svg' %>
<%= t('protocols.index.versions.publish') %>
<% end %>