mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01:00
Update spent time title to indicate Overtime or normal Spent time
This commit is contained in:
parent
eec3c301bc
commit
d38071457c
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue