BigW Consortium Gitlab

Commit 649d1eb2 by Regis

new line for skipped - use logic gate for REALTIME true or false

parent 872b0d17
......@@ -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);
},
......
......@@ -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 = {}));
......@@ -20,4 +20,4 @@
</td>
`,
});
})(window.gl || (window.gl = {}));
\ No newline at end of file
})(window.gl || (window.gl = {}));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment