Selaa lähdekoodia

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 !
Lauri Ojansivu 5 vuotta sitten
vanhempi
sitoutus
32ce2b51d8
1 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 13 0
      client/components/cards/cardDetails.js

+ 13 - 0
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