We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac06134 commit bfb9674Copy full SHA for bfb9674
1 file changed
app/components/signout-link.js
@@ -4,13 +4,15 @@ export default Ember.Component.extend({
4
currentUserObserver: function() {
5
if(this.get('currentUser')){
6
var currentUser = this.get('currentUser');
7
- if(this.get('avatarAttribute')){
+ if(this.get('avatarAttribute.thumb_url')){
8
this.setProperties({
9
isAvatarPresent: !Ember.isEmpty(currentUser.get(this.get('avatarAttribute'))),
10
avatarUrl: currentUser.get(this.get('avatarAttribute.thumb_url'))
11
});
12
}
13
- this.set('username', currentUser.get(this.get('nameAttribute')));
+ if (this.get('nameAttribute')){
14
+ this.set('username', currentUser.get(this.get('nameAttribute')));
15
+ }
16
17
}.observes('currentUser'),
18
actions:{
0 commit comments