mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
Show delete button only for drafts [SCI-7997]
This commit is contained in:
parent
d26edb08df
commit
59078e923b
1 changed files with 5 additions and 3 deletions
|
@ -31,9 +31,11 @@
|
|||
<%= image_tag 'icon_small/publish.svg' %>
|
||||
<%= t('protocols.index.versions.publish') %>
|
||||
<% end %>
|
||||
<div data-url="<%= destroy_draft_protocol_path(draft) %>" class="btn btn-light delete-draft">
|
||||
<i class="fas fa-trash"></i>
|
||||
</div>
|
||||
<% 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">
|
||||
|
|
Loading…
Reference in a new issue