X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a297e2ccdcabd1197af7cc7cab3c24f5aea1efc0..52bfc5708939125fff6309aaeb8f884f4315e276:/app/views/changesets/show.html.erb diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 702e61f92..3f1aeb201 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -49,9 +49,15 @@ â <%= 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 %> + + +