BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
649d1eb2
Commit
649d1eb2
authored
Nov 29, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new line for skipped - use logic gate for REALTIME true or false
parent
872b0d17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
pipelines.js.es6
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
+2
-1
store.js.es6
app/assets/javascripts/vue_pipelines_index/store.js.es6
+13
-10
skipped.js.es6
app/assets/javascripts/vue_pipelines_status/skipped.js.es6
+1
-2
No files found.
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
View file @
649d1eb2
...
...
@@ -2,6 +2,7 @@
/* eslint-disable no-param-reassign, no-bitwise*/
((gl) => {
const REALTIME = false;
const SPREAD = '...';
const PREV = 'Prev';
const NEXT = 'Next';
...
...
@@ -55,7 +56,7 @@
if (text === FIRST) this.pagenum = 1;
window.history.pushState({}, null, `?p=${this.pagenum}`);
//
clearInterval(this.intervalId);
if (REALTIME)
clearInterval(this.intervalId);
this.pageRequest = true;
this.store.fetchDataLoop.call(this, Vue, this.pagenum, this.scope);
},
...
...
app/assets/javascripts/vue_pipelines_index/store.js.es6
View file @
649d1eb2
...
...
@@ -2,6 +2,7 @@
/* eslint-disable no-param-reassign */
((gl) => {
const REALTIME = false;
const PAGINATION_LIMIT = 31;
const SLICE_LIMIT = 29;
...
...
@@ -81,17 +82,19 @@
resourceChecker();
goFetch();
// this.intervalId = setInterval(() => {
// if (this.updatedAt) {
// resourceChecker();
// if (Vue.activeResources > 1) return;
// goUpdate();
// }
// }, 3000);
if (REALTIME) {
this.intervalId = setInterval(() => {
if (this.updatedAt) {
resourceChecker();
if (Vue.activeResources > 1) return;
goUpdate();
}
}, 3000);
// window.onbeforeunload = function removePipelineInterval() {
// clearInterval(this.intervalId);
// };
window.onbeforeunload = function removePipelineInterval() {
clearInterval(this.intervalId);
};
}
}
};
})(window.gl || (window.gl = {}));
app/assets/javascripts/vue_pipelines_status/skipped.js.es6
View file @
649d1eb2
...
...
@@ -20,4 +20,4 @@
</td>
`,
});
})(window.gl || (window.gl = {}));
\ No newline at end of file
})(window.gl || (window.gl = {}));
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