summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-05 23:14:45 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-05 23:33:44 +0200
commit216de59aba805c2eacf1d6742f05ea7e9199f3b9 (patch)
tree1cfc72765a7a17aabba65de0b0a766bbc15dbc14 /client
parent559de5602c908858fab5301f610e3528eb146546 (diff)
downloadwekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.tar.gz
wekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.tar.bz2
wekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.zip
Support avatars and improve permissions integration on sandstorm
We now update the internal state of the application every time a user connects to the application, which means that if the sandstorm sharing graph has changed since the last time we saw a user, his permissions will be updated accordingly.
Diffstat (limited to 'client')
-rw-r--r--client/components/users/userAvatar.jade9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade
index 5a3398cd..e08666e5 100644
--- a/client/components/users/userAvatar.jade
+++ b/client/components/users/userAvatar.jade
@@ -9,10 +9,11 @@ template(name="userAvatar")
span.member-presence-status(class=presenceStatusClassName)
span.member-type(class=memberType)
- if showEdit
- if $eq currentUser._id userData._id
- a.edit-avatar.js-change-avatar
- i.fa.fa-pencil
+ unless isSandstorm
+ if showEdit
+ if $eq currentUser._id userData._id
+ a.edit-avatar.js-change-avatar
+ i.fa.fa-pencil
template(name="userAvatarInitials")
svg.avatar.avatar-initials(viewBox="0 0 {{viewPortWidth}} 15")