fix uppercase error for avatars
This commit is contained in:
parent
a3ce77831d
commit
adb8753b60
|
@ -8,14 +8,14 @@ export default Ember.Component.extend({
|
|||
userInitials: function() {
|
||||
var name = this.get('name');
|
||||
var arr = name.split(' ');
|
||||
var initials;
|
||||
var initials = '';
|
||||
|
||||
if (arr.length >= 2) {
|
||||
initials = arr[0].split('')[0] + arr[1].split('')[0];
|
||||
} else {
|
||||
initials = arr[0].split('')[0];
|
||||
}
|
||||
return initials.toUpperCase();
|
||||
return initials;
|
||||
}.property('userInitials')
|
||||
|
||||
});
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
text-align: center
|
||||
font-size: 1.4em
|
||||
line-height: 1.6
|
||||
text-transform: uppercase
|
||||
|
||||
.real-avatar
|
||||
+absoluteCenter
|
||||
|
|
Loading…
Reference in New Issue
Block a user