diff options
Diffstat (limited to 'client/components/users/userAvatar.js')
-rw-r--r-- | client/components/users/userAvatar.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js index 7a2831b2..262a63af 100644 --- a/client/components/users/userAvatar.js +++ b/client/components/users/userAvatar.js @@ -139,13 +139,6 @@ Template.cardMembersPopup.helpers({ return _.contains(cardMembers, this.userId); }, - isCardAssignee() { - const card = Template.parentData(); - const cardAssignees = card.getAssignees(); - - return _.contains(cardAssignees, this.userId); - }, - user() { return Users.findOne(this.userId); }, @@ -173,26 +166,3 @@ Template.cardMemberPopup.events({ }, 'click .js-edit-profile': Popup.open('editProfile'), }); - -Template.cardAssigneesPopup.events({ - 'click .js-select-assignee'(event) { - const card = Cards.findOne(Session.get('currentCard')); - const assigneeId = this.userId; - card.toggleAssignee(assigneeId); - event.preventDefault(); - }, -}); - -Template.cardAssigneePopup.helpers({ - user() { - return Users.findOne(this.userId); - }, -}); - -Template.cardAssigneePopup.events({ - 'click .js-remove-assignee'() { - Cards.findOne(this.cardId).unassignAssignee(this.userId); - Popup.close(); - }, - 'click .js-edit-profile': Popup.open('editProfile'), -}); |