From 8d5c1df7ea6542951034d345a5848650a4b2637f Mon Sep 17 00:00:00 2001 From: Regis Date: Thu, 10 Nov 2016 15:16:31 -0700 Subject: [PATCH] added comments about need values for time_ago in Vue --- app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 | 2 ++ 1 file changed, 2 insertions(+) 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 f9318130356..2fbfa486f88 100644 --- a/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6 @@ -22,6 +22,7 @@ }, computed: { finishdate() { + // need started_at or created_at here const date = new Date( new Date( this.pipeline.details.finished_at @@ -34,6 +35,7 @@ ); }, runningdate() { + // need started_at or created_at at here const date = new Date( new Date().getTime() - new Date(this.pipeline.started_at).getTime() );