diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-11-17 16:39:38 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-11-21 13:57:10 -0500 |
commit | c9507678e6ca5a419d4ce8990bdc1870cc4890f9 (patch) | |
tree | d8c6dd3adc387800e30d83976b6203aaa20e4b3b /app | |
parent | cdafef9be0c375ce7f59fac383ff390819728d8f (diff) | |
download | gitlab-ce-c9507678e6ca5a419d4ce8990bdc1870cc4890f9.tar.gz |
Show seconds only if time is only in seconds
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/cycle_analytics/components/total_time_component.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/cycle_analytics/components/total_time_component.js.es6 b/app/assets/javascripts/cycle_analytics/components/total_time_component.js.es6 index ebecd2fb7d4..02f518565ed 100644 --- a/app/assets/javascripts/cycle_analytics/components/total_time_component.js.es6 +++ b/app/assets/javascripts/cycle_analytics/components/total_time_component.js.es6 @@ -10,7 +10,7 @@ <template v-if="time.days">{{ time.days }} <span>{{ time.days === 1 ? 'day' : 'days' }}</span></template> <template v-if="time.hours">{{ time.hours }} <span>hr</span></template> <template v-if="time.mins">{{ time.mins }} <span>mins</span></template> - <template v-if="time.seconds && !time.mins">{{ time.seconds }} <span>s</span></template> + <template v-if="time.seconds && Object.keys(time).length === 1">{{ time.seconds }} <span>s</span></template> </span> `, }); |