summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/dispatcher.js.es6
diff options
context:
space:
mode:
authorwendy0402 <wendykurniawan92@gmail.com>2016-10-09 21:17:14 +0700
committerwendy0402 <wendykurniawan92@gmail.com>2017-02-22 23:13:25 +0700
commit94255217e9c595579b83deb0a1dd5b7bca9572c5 (patch)
tree9aaa6d9013523c68ca5c3645f514d563155abc0b /app/assets/javascripts/dispatcher.js.es6
parent510c51a6b5fd822755046e10f5c5d875ad5fba9f (diff)
downloadgitlab-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/assets/javascripts/dispatcher.js.es6')
-rw-r--r--app/assets/javascripts/dispatcher.js.es63
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js.es6 b/app/assets/javascripts/dispatcher.js.es6
index 45aa6050aed..56610544f63 100644
--- a/app/assets/javascripts/dispatcher.js.es6
+++ b/app/assets/javascripts/dispatcher.js.es6
@@ -108,6 +108,9 @@ const ShortcutsBlob = require('./shortcuts_blob');
case 'projects:compare:show':
new gl.Diff();
break;
+ case 'projects:branches:index':
+ gl.AjaxLoadingSpinner.init();
+ break;
case 'projects:issues:new':
case 'projects:issues:edit':
shortcut_handler = new ShortcutsNavigation();