diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-11-30 09:29:31 -0700 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-11-30 09:29:31 -0700 |
commit | 81ae6c7d0a38bb66289c5d83239255ce5cdfcea5 (patch) | |
tree | 579a5a62afc19a97f899d63147e256f0c0e54e23 | |
parent | fd9adc78824500928465d82c691fdd76e290672d (diff) | |
download | gitlab-ce-81ae6c7d0a38bb66289c5d83239255ce5cdfcea5.tar.gz |
fire timeago interval no matter what
-rw-r--r-- | app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 b/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 index 505b1ee3490..c078e9459f0 100644 --- a/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 @@ -1,8 +1,6 @@ /* global Vue, gl */ /* eslint-disable no-param-reassign */ ((gl) => { - const REALTIME = false; - gl.VueTimeAgo = Vue.extend({ data() { return { @@ -15,13 +13,11 @@ 'addTimeInterval', ], created() { - if (!REALTIME) { - this.timeInterval = setInterval(() => { - this.currentTime = new Date(); - }, 1000); + this.timeInterval = setInterval(() => { + this.currentTime = new Date(); + }, 1000); - this.addTimeInterval(this.timeInterval, this); - } + this.addTimeInterval(this.timeInterval, this); }, computed: { localTimeFinished() { |