summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-02 16:38:16 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-02 16:38:16 +0200
commit32ce2b51d8bff5e8851732394a8bae3c56f8b0b6 (patch)
tree4ed1a778f4215e445820517a1f3391608b5cc3e9 /client/components/cards
parente0339592781eafa46d87abcb1741e48e77f2690f (diff)
downloadwekan-32ce2b51d8bff5e8851732394a8bae3c56f8b0b6.tar.gz
wekan-32ce2b51d8bff5e8851732394a8bae3c56f8b0b6.tar.bz2
wekan-32ce2b51d8bff5e8851732394a8bae3c56f8b0b6.zip
Assignee field like Jira #2452 , in progress.
Added features: - When selecting new assignee (+) icon, list shows names who to add. TODO: - When selecting new assignee (+) icon, list does not yet show avatars who to add. Thanks to xet7 !
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDetails.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 3b2873a2..2c74985f 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -863,6 +863,19 @@ Template.cardAssigneesPopup.events({
},
});
+Template.cardAssigneesPopup.helpers({
+ isCardAssignee() {
+ const card = Template.parentData();
+ const cardAssignees = card.getAssignees();
+
+ return _.contains(cardAssignees, this.userId);
+ },
+
+ user() {
+ return Users.findOne(this.userId);
+ },
+});
+
Template.cardAssigneePopup.helpers({
userData() {
// We need to handle a special case for the search results provided by the