Welcome to mirror list, hosted at ThFree Co, Russian Federation.

vue_resource_interceptor.js.es6 « boards « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 66f645a4b61e608055aa3e53b1aafda3037c9545 (plain)
1
2
3
4
5
6
7
8
Vue.http.interceptors.push((request, next)  => {
  Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;

  setTimeout(() => {
    Vue.activeResources--;
  }, 500);
  next();
});