BigW Consortium Gitlab

Commit 550d3148 by Rémy Coutable

Tag deletion doesn't use AJAX anymore

The controller was actually changed to not respond to AJAX but the deletion button in the index.html was still using AJAX. There is no need for AJAX when deleting a tag since it's a very rare use-case. KISS. Fixes #13781
parent 90ced487
......@@ -19,7 +19,7 @@
= icon("pencil")
- if can?(current_user, :admin_project, @project)
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip', title: "Delete tag", method: :delete, data: { confirm: "Deleting the '#{tag.name}' tag cannot be undone. Are you sure?", container: 'body' }, remote: true do
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip', title: "Delete tag", method: :delete, data: { confirm: "Deleting the '#{tag.name}' tag cannot be undone. Are you sure?", container: 'body' } do
= icon("trash-o")
- if commit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment