]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changesets/show.html.erb
Merge remote-tracking branch 'upstream/pull/5652'
[rails.git] / app / views / changesets / show.html.erb
index 3f0d08476da73f7d00745401ea3e95212cdd3d56..70b1877b5a0bb4789001e5d2ef9ebdb4a470f502 100644 (file)
@@ -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",
               —
               <%= 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">
             <% end %>
           </small>
           <div class="mx-2">