Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
9972f59f
Commit
9972f59f
authored
Jan 28, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use single source of truth for vue_resource_interceptor
parent
037b4fe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
app/assets/javascripts/boards/boards_bundle.js.es6
app/assets/javascripts/boards/boards_bundle.js.es6
+1
-1
app/assets/javascripts/boards/vue_resource_interceptor.js.es6
...assets/javascripts/boards/vue_resource_interceptor.js.es6
+0
-10
app/assets/javascripts/vue_pipelines_index/index.js.es6
app/assets/javascripts/vue_pipelines_index/index.js.es6
+1
-1
app/assets/javascripts/vue_shared/components/pipelines_table.js.es6
.../javascripts/vue_shared/components/pipelines_table.js.es6
+4
-1
No files found.
app/assets/javascripts/boards/boards_bundle.js.es6
View file @
9972f59f
...
...
@@ -13,7 +13,7 @@
//= require ./components/board
//= require ./components/board_sidebar
//= require ./components/new_list_dropdown
//= require
.
/vue_resource_interceptor
//= require
vue_shared
/vue_resource_interceptor
$(() => {
const $boardApp = document.getElementById('board-app');
...
...
app/assets/javascripts/boards/vue_resource_interceptor.js.es6
deleted
100644 → 0
View file @
037b4fe9
/* eslint-disable func-names, prefer-arrow-callback, no-unused-vars */
/* global Vue */
Vue.http.interceptors.push((request, next) => {
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
next(function (response) {
Vue.activeResources -= 1;
});
});
app/assets/javascripts/vue_pipelines_index/index.js.es6
View file @
9972f59f
...
...
@@ -2,7 +2,7 @@
/*= require vue_shared/components/commit */
/*= require vue_pagination/index */
/*= require vue-resource
/*= require
boards
/vue_resource_interceptor */
/*= require
vue_shared
/vue_resource_interceptor */
/*= require ./status.js.es6 */
/*= require ./store.js.es6 */
/*= require ./pipeline_url.js.es6 */
...
...
app/assets/javascripts/vue_shared/components/pipelines_table.js.es6
View file @
9972f59f
...
...
@@ -19,10 +19,13 @@
props: {
/**
*
Stores
the Pipelines to render.
*
Object used to store
the Pipelines to render.
* It's passed as a prop to allow different stores to use this Component.
* Different API calls can result in different responses, using a custom
* store allows us to use the same pipeline component.
*
* Note: All provided stores need to have a `storePipelines` method.
* Find a better way to do this.
*/
store: {
type: Object,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment