mirror of
https://github.com/wekan/wekan.git
synced 2026-01-07 01:58:49 +01:00
Allow description and member two way binding
This commit is contained in:
parent
a93de07fb9
commit
0a62089df0
6 changed files with 82 additions and 14 deletions
|
|
@ -134,8 +134,9 @@ BlazeComponent.extendComponent({
|
|||
|
||||
Template.cardMembersPopup.helpers({
|
||||
isCardMember() {
|
||||
const cardId = Template.parentData()._id;
|
||||
const cardMembers = Cards.findOne(cardId).members || [];
|
||||
const card = Template.parentData();
|
||||
const cardMembers = card.getMembers();
|
||||
|
||||
return _.contains(cardMembers, this.userId);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue