Commit 649d1eb2 authored by Regis's avatar Regis

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

parent 872b0d17
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* eslint-disable no-param-reassign, no-bitwise*/ /* eslint-disable no-param-reassign, no-bitwise*/
((gl) => { ((gl) => {
const REALTIME = false;
const SPREAD = '...'; const SPREAD = '...';
const PREV = 'Prev'; const PREV = 'Prev';
const NEXT = 'Next'; const NEXT = 'Next';
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
if (text === FIRST) this.pagenum = 1; if (text === FIRST) this.pagenum = 1;
window.history.pushState({}, null, `?p=${this.pagenum}`); window.history.pushState({}, null, `?p=${this.pagenum}`);
// clearInterval(this.intervalId); if (REALTIME) clearInterval(this.intervalId);
this.pageRequest = true; this.pageRequest = true;
this.store.fetchDataLoop.call(this, Vue, this.pagenum, this.scope); this.store.fetchDataLoop.call(this, Vue, this.pagenum, this.scope);
}, },
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
((gl) => { ((gl) => {
const REALTIME = false;
const PAGINATION_LIMIT = 31; const PAGINATION_LIMIT = 31;
const SLICE_LIMIT = 29; const SLICE_LIMIT = 29;
...@@ -81,17 +82,19 @@ ...@@ -81,17 +82,19 @@
resourceChecker(); resourceChecker();
goFetch(); goFetch();
// this.intervalId = setInterval(() => { if (REALTIME) {
// if (this.updatedAt) { this.intervalId = setInterval(() => {
// resourceChecker(); if (this.updatedAt) {
// if (Vue.activeResources > 1) return; resourceChecker();
// goUpdate(); if (Vue.activeResources > 1) return;
// } goUpdate();
// }, 3000); }
}, 3000);
// window.onbeforeunload = function removePipelineInterval() { window.onbeforeunload = function removePipelineInterval() {
// clearInterval(this.intervalId); clearInterval(this.intervalId);
// }; };
}
} }
}; };
})(window.gl || (window.gl = {})); })(window.gl || (window.gl = {}));
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
</td> </td>
`, `,
}); });
})(window.gl || (window.gl = {})); })(window.gl || (window.gl = {}));
\ No newline at end of file
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