(js) Improve sgAvatarImage

This commit is contained in:
Francis Lachapelle
2016-11-11 16:46:55 -05:00
parent 0a75f5c4f7
commit 3bbd61cfd2
18 changed files with 45 additions and 68 deletions
@@ -154,6 +154,7 @@
});
if (this.isgroup)
this.c_component = 'vlist';
this.$avatarIcon = this.$isList()? 'group' : 'person';
if (data.notes && data.notes.length)
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
else if (!this.notes || !this.notes.length)