mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +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
|
|
@ -1,3 +1,5 @@
|
|||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
boards() {
|
||||
return Boards.find({
|
||||
|
|
@ -13,6 +15,16 @@ BlazeComponent.extendComponent({
|
|||
return user && user.hasStarred(this.currentData()._id);
|
||||
},
|
||||
|
||||
hasOvertimeCards() {
|
||||
subManager.subscribe('board', this.currentData()._id);
|
||||
return this.currentData().hasOvertimeCards();
|
||||
},
|
||||
|
||||
hasSpentTimeCards() {
|
||||
subManager.subscribe('board', this.currentData()._id);
|
||||
return this.currentData().hasSpentTimeCards();
|
||||
},
|
||||
|
||||
isInvited() {
|
||||
const user = Meteor.user();
|
||||
return user && user.isInvitedTo(this.currentData()._id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue