diff options
author | Jon Kolb <kolbyjack@gmail.com> | 2019-06-11 17:48:42 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-25 09:31:23 +0800 |
commit | 4e283ee706b11fd3b918230976addc9a70603ce6 (patch) | |
tree | 17c39d55c76ce24380f4805c733c823b63222d85 /app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue | |
parent | db9783f7826ed5ba58a8941dd80a1cd7dda517b0 (diff) | |
download | gitlab-ce-4e283ee706b11fd3b918230976addc9a70603ce6.tar.gz |
Limit time tracking values to hours
Adds an instance setting to limit display of time tracking
values to hours only
Diffstat (limited to 'app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue')
-rw-r--r-- | app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue b/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue index f4d926cd3ec..cd3e7ce33f7 100644 --- a/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue +++ b/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue @@ -32,7 +32,7 @@ export default { computed: { parsedTimeRemaining() { const diffSeconds = this.timeEstimate - this.timeSpent; - return parseSeconds(diffSeconds); + return parseSeconds(diffSeconds, { limitToHours: gon.time_tracking_display_hours_only }); }, timeRemainingHumanReadable() { return stringifyTime(this.parsedTimeRemaining); |