mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 10:50:13 +01:00
Added red-green circle to board lists item for indicating board which has overtime logs or normal spent time log
This commit is contained in:
parent
d38071457c
commit
6dba4ccd4d
5 changed files with 47 additions and 0 deletions
|
|
@ -187,6 +187,16 @@ Boards.helpers({
|
|||
return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } });
|
||||
},
|
||||
|
||||
hasOvertimeCards(){
|
||||
const card = Cards.findOne({isOvertime: true, boardId: this._id, archived: false} );
|
||||
return card !== undefined;
|
||||
},
|
||||
|
||||
hasSpentTimeCards(){
|
||||
const card = Cards.findOne({spentTime: { $gt: 0 }, boardId: this._id, archived: false} );
|
||||
return card !== undefined;
|
||||
},
|
||||
|
||||
activities() {
|
||||
return Activities.find({ boardId: this._id }, { sort: { createdAt: -1 } });
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue