mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-21 06:51:25 +08:00
Merge pull request #5028 from G-Chubinidze/gc_SCI_7997
Show delete button only for drafts [SCI-7997]
This commit is contained in:
commit
33bb7294f1
1 changed files with 5 additions and 3 deletions
|
@ -31,10 +31,12 @@
|
|||
<%= image_tag 'icon_small/publish.svg' %>
|
||||
<%= t('protocols.index.versions.publish') %>
|
||||
<% end %>
|
||||
<% if can_delete_protocol_draft_in_repository?(draft) %>
|
||||
<div data-url="<%= destroy_draft_protocol_path(draft) %>" class="btn btn-light delete-draft">
|
||||
<i class="fas fa-trash"></i>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="protocol-version-comment">
|
||||
<% if can_manage_protocol_in_repository?(draft) %>
|
||||
|
|
Loading…
Reference in a new issue