summaryrefslogtreecommitdiffstats
path: root/client/components/users/userAvatar.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-12-06 23:25:08 -0500
committerMaxime Quandalle <maxime@quandalle.com>2015-12-06 23:25:08 -0500
commitc59b7a6f9c86f59847698552e0a407c9ae68c5db (patch)
tree7e62450e80983ac94aed74bf70c1a449b7b4b1f7 /client/components/users/userAvatar.js
parentd4c5310d65cbdfbd002288d33eba429ace33bc3c (diff)
parent21fa6fdc327757c29364a0e59fa37d8b279411df (diff)
downloadwekan-c59b7a6f9c86f59847698552e0a407c9ae68c5db.tar.gz
wekan-c59b7a6f9c86f59847698552e0a407c9ae68c5db.tar.bz2
wekan-c59b7a6f9c86f59847698552e0a407c9ae68c5db.zip
Merge pull request #422 from floatinghotpot/patch-7
add: invite new user to board via email
Diffstat (limited to 'client/components/users/userAvatar.js')
-rw-r--r--client/components/users/userAvatar.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js
index 1f1da251..1e531882 100644
--- a/client/components/users/userAvatar.js
+++ b/client/components/users/userAvatar.js
@@ -22,8 +22,11 @@ Template.userAvatar.helpers({
},
presenceStatusClassName() {
+ const user = Users.findOne(this.userId);
const userPresence = presences.findOne({ userId: this.userId });
- if (!userPresence)
+ if (user && user.isInvitedTo(Session.get('currentBoard')))
+ return 'pending';
+ else if (!userPresence)
return 'disconnected';
else if (Session.equals('currentBoard', userPresence.state.currentBoardId))
return 'active';