summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorThuan Pham Quoc <thuanpq.io@gmail.com>2017-11-20 22:40:02 +0700
committerThuan Pham Quoc <thuanpq.io@gmail.com>2017-11-20 22:40:02 +0700
commitd38071457ce1ae722d025216fb2bf6ba958697ac (patch)
tree4475ec12fbb7b7d72d2e89b8aaf428221871c862 /client/components/cards
parenteec3c301bc7b0f29d7a7fcfcf59d330ceb604985 (diff)
downloadwekan-d38071457ce1ae722d025216fb2bf6ba958697ac.tar.gz
wekan-d38071457ce1ae722d025216fb2bf6ba958697ac.tar.bz2
wekan-d38071457ce1ae722d025216fb2bf6ba958697ac.zip
Update spent time title to indicate Overtime or normal Spent time
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardTime.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/components/cards/cardTime.js b/client/components/cards/cardTime.js
index 23331668..eadcc88e 100644
--- a/client/components/cards/cardTime.js
+++ b/client/components/cards/cardTime.js
@@ -55,7 +55,11 @@ BlazeComponent.extendComponent({
self.time = ReactiveVar();
},
showTitle() {
- return `${TAPi18n.__('card-spent')} ${this.data().spentTime}`;
+ if (this.data().isOvertime) {
+ return `${TAPi18n.__('overtime')} ${this.data().spentTime} ${TAPi18n.__('hours')}`;
+ } else {
+ return `${TAPi18n.__('card-spent')} ${this.data().spentTime} ${TAPi18n.__('hours')}`;
+ }
},
showTime() {
return this.data().spentTime;