debian-mirror-gitlab/app/assets/javascripts/boards/vue_resource_interceptor.js.es6

8 lines
190 B
JavaScript
Raw Normal View History

2016-09-29 09:46:39 +05:30
Vue.http.interceptors.push((request, next) => {
2016-09-13 17:45:13 +05:30
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
2016-09-29 09:46:39 +05:30
next(function (response) {
Vue.activeResources--;
2016-09-13 17:45:13 +05:30
});
});