diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-17 01:55:57 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-08-10 23:59:08 +0200 |
commit | 0a62089df02b2ab308d4749a837e08c4164cb770 (patch) | |
tree | 7a8ff38e2074e3568d99f5202893d32398d6fb76 /client/components/users/userAvatar.js | |
parent | a93de07fb9b85f97da274bf549e5244ee8e30484 (diff) | |
download | wekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.gz wekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.bz2 wekan-0a62089df02b2ab308d4749a837e08c4164cb770.zip |
Allow description and member two way binding
Diffstat (limited to 'client/components/users/userAvatar.js')
-rw-r--r-- | client/components/users/userAvatar.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js index be7a85d2..91cad237 100644 --- a/client/components/users/userAvatar.js +++ b/client/components/users/userAvatar.js @@ -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); }, |