summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-12-30 19:16:49 +0100
committerMaxime Quandalle <maxime@quandalle.com>2015-12-30 19:34:18 +0100
commitd9b74131aedd0f263aa7fe35307ee2c6d6e6ab86 (patch)
tree4c005f8c67ab0c4c4878f9ca13488a461872326c /client/components
parentf6c01161a02e273b87c9f6cc02d3809b997241ba (diff)
downloadwekan-d9b74131aedd0f263aa7fe35307ee2c6d6e6ab86.tar.gz
wekan-d9b74131aedd0f263aa7fe35307ee2c6d6e6ab86.tar.bz2
wekan-d9b74131aedd0f263aa7fe35307ee2c6d6e6ab86.zip
Fix avatar support on Sanstorm
The bug comes for 9154b06 which this commit partially reverts. The synchronization between the user document profile and the Sandstorm HTTP headers is still not perfect. Having a clean model may requires the `accounts-sandstorm` to expose a hook to modify the user document just after the `services.sandstorm` credentials are updated. Fixes #460
Diffstat (limited to 'client/components')
-rw-r--r--client/components/users/userAvatar.jade4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade
index 44e899a7..e08666e5 100644
--- a/client/components/users/userAvatar.jade
+++ b/client/components/users/userAvatar.jade
@@ -1,7 +1,7 @@
template(name="userAvatar")
a.member.js-member(title="{{userData.profile.fullname}} ({{userData.username}})")
- if userData.getAvatarUrl
- img.avatar.avatar-image(src=userData.getAvatarUrl)
+ if userData.profile.avatarUrl
+ img.avatar.avatar-image(src=userData.profile.avatarUrl)
else
+userAvatarInitials(userId=userData._id)