diff options
author | Rémy Coutable <remy@rymai.me> | 2016-02-26 17:02:17 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-01 18:44:01 +0100 |
commit | 550d314839fec31348b36891445b73bd21837ce1 (patch) | |
tree | 0a49f72317f49a201357a037e8121a21595d36fc /app/views/projects/tags | |
parent | 90ced487f2e8a6252864f9ac8821c2de06be9ced (diff) | |
download | gitlab-ce-550d314839fec31348b36891445b73bd21837ce1.tar.gz |
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
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml index 399782273d3..e4cfcb682d0 100644 --- a/app/views/projects/tags/_tag.html.haml +++ b/app/views/projects/tags/_tag.html.haml @@ -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 |