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

11 lines
233 B
JavaScript
Raw Normal View History

2016-09-13 17:45:13 +05:30
Vue.http.interceptors.push((request, next) => {
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
Vue.nextTick(() => {
setTimeout(() => {
Vue.activeResources--;
}, 500);
});
next();
});