Selaa lähdekoodia

Update spent time title to indicate Overtime or normal Spent time

Thuan Pham Quoc 7 vuotta sitten
vanhempi
sitoutus
d38071457c
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      client/components/cards/cardTime.js

+ 5 - 1
client/components/cards/cardTime.js

@@ -55,7 +55,11 @@ BlazeComponent.extendComponent({
     self.time = ReactiveVar();
     self.time = ReactiveVar();
   },
   },
   showTitle() {
   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() {
   showTime() {
     return this.data().spentTime;
     return this.data().spentTime;