diff options
author | wendy0402 <wendykurniawan92@gmail.com> | 2016-10-09 21:17:14 +0700 |
---|---|---|
committer | wendy0402 <wendykurniawan92@gmail.com> | 2017-02-22 23:13:25 +0700 |
commit | 94255217e9c595579b83deb0a1dd5b7bca9572c5 (patch) | |
tree | 9aaa6d9013523c68ca5c3645f514d563155abc0b /app/views/projects/branches/_branch.html.haml | |
parent | 510c51a6b5fd822755046e10f5c5d875ad5fba9f (diff) | |
download | gitlab-ce-94255217e9c595579b83deb0a1dd5b7bca9572c5.tar.gz |
on branch deletion show loading icon and disabled the button
after user click delete branch, there is no processing indication, and user can click many times till. It seems flaw in UX. this will fix it
fix bug in branch deletion link
Diffstat (limited to 'app/views/projects/branches/_branch.html.haml')
-rw-r--r-- | app/views/projects/branches/_branch.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml index 19ffe73a08d..ae63f8184df 100644 --- a/app/views/projects/branches/_branch.html.haml +++ b/app/views/projects/branches/_branch.html.haml @@ -31,7 +31,7 @@ - if can?(current_user, :push_code, @project) = link_to namespace_project_branch_path(@project.namespace, @project, branch.name), - class: "btn btn-remove remove-row #{can_remove_branch?(@project, branch.name) ? '' : 'disabled'}", + class: "btn btn-remove remove-row js-ajax-loading-spinner #{can_remove_branch?(@project, branch.name) ? '' : 'disabled'}", method: :delete, data: { confirm: "Deleting the '#{branch.name}' branch cannot be undone. Are you sure?" }, remote: true, |