gitlab-org--gitlab-foss/app/assets/javascripts/boards/vue_resource_interceptor.js.es6
2016-10-26 10:02:58 +02:00

8 lines
211 B
JavaScript

/* eslint-disable */
Vue.http.interceptors.push((request, next) => {
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
next(function (response) {
Vue.activeResources--;
});
});