mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Fix publish-draft button [SCI-9953] (#6957)
This commit is contained in:
parent
9b3f107d13
commit
a719ceb247
1 changed files with 4 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue