summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/vue_pipelines_index/time_ago.js.es635
1 files changed, 0 insertions, 35 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 1d0da41ebbd..496065dbedc 100644
--- a/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6
+++ b/app/assets/javascripts/vue_pipelines_index/time_ago.js.es6
@@ -11,39 +11,6 @@
},
},
methods: {
- formatSection(section) {
- if (`${section}`.split('').length <= 1) return `0${section}`;
- return `${section}`;
- },
- hours(date) {
- return this.formatSection(date.getHours());
- },
- minutes(date) {
- return this.formatSection(date.getMinutes());
- },
- seconds(date) {
- return this.formatSection(date.getSeconds());
- },
- finishdate() {
- const date = new Date(
- new Date(
- this.pipeline.details.finished_at
- ).getTime() - new Date(
- this.pipeline.created_at
- ).getTime()
- );
- return (
- `${this.hours(date)}:${this.minutes(date)}:${this.seconds(date)}`
- );
- },
- runningdate() {
- const date = new Date(
- new Date().getTime() - new Date(this.pipeline.created_at).getTime()
- );
- return (
- `${this.hours(date)}:${this.minutes(date)}:${this.seconds(date)}`
- );
- },
timeStopped() {
const options = {
weekday: 'long',
@@ -63,8 +30,6 @@
};
},
duration() {
- // if (this.timeStopped()) return this.finishdate();
- // return this.runningdate();
const { duration } = this.pipeline.details;
if (duration === 0) return '00:00:00';
if (duration !== null) return duration;