Merge pull request #5134 from nonamethanks/fix-for-button-fix

Fix regression in 7486836b0f that removed the delete button from pending posts
This commit is contained in:
evazion
2022-04-20 16:09:31 -05:00
committed by GitHub

View File

@@ -153,7 +153,9 @@
<% else %>
<li id="post-option-approve"><%= link_to "Approve", post_approvals_path(post_id: @post.id), remote: true, method: :post, "data-shortcut": "shift+o", "data-confirm": "Are you sure you want to approve this post?" %></li>
<% end %>
<% elsif !@post.is_deleted? && policy(@post).delete? %>
<% end %>
<% if !@post.is_deleted? && policy(@post).delete? %>
<li id="post-option-delete"><%= link_to "Delete", @post, method: :delete, remote: true %></li>
<% end %>