Updates to userAvatar and cardDetails template

* enable userAvatar to work with member and assignee
* remove userAvatarAssignee template
This commit is contained in:
John R. Supplee 2021-04-06 17:50:03 +02:00
parent 5a6f84ce34
commit 03d29dd674
4 changed files with 29 additions and 164 deletions

View file

@ -1,3 +1,7 @@
import Cards from '/models/cards';
import Avatars from '/models/avatars';
import Users from '/models/users';
Template.userAvatar.helpers({
userData() {
// We need to handle a special case for the search results provided by the
@ -30,11 +34,6 @@ Template.userAvatar.helpers({
},
});
Template.userAvatar.events({
'click .js-change-avatar': Popup.open('changeAvatar'),
'click .js-member': Popup.open('cardMember'),
});
Template.userAvatarInitials.helpers({
initials() {
const user = Users.findOne(this.userId);