Create api changeset comment visibility resource
This commit is contained in:
parent
457cc99349
commit
84a0c76ab2
13 changed files with 356 additions and 299 deletions
|
@ -49,8 +49,8 @@
|
|||
—
|
||||
<%= tag.button t(".#{comment.visible ? 'hide' : 'unhide'}_comment"),
|
||||
:class => "btn btn-sm small btn-link link-secondary p-0 align-baseline",
|
||||
:data => { :method => "POST",
|
||||
:url => comment.visible ? changeset_comment_hide_url(comment) : changeset_comment_unhide_url(comment) } %>
|
||||
:data => { :method => comment.visible ? "DELETE" : "POST",
|
||||
:url => api_changeset_comment_visibility_path(comment) } %>
|
||||
<% end %>
|
||||
</small>
|
||||
<div class="mx-2">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue