From d38071457ce1ae722d025216fb2bf6ba958697ac Mon Sep 17 00:00:00 2001 From: Thuan Pham Quoc Date: Mon, 20 Nov 2017 22:40:02 +0700 Subject: Update spent time title to indicate Overtime or normal Spent time --- client/components/cards/cardTime.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/components/cards') 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; -- cgit v1.2.3-1-g7c22