FIX: Only look for fa- at the beginning of the field. Allows urls with

that combination in it. Thanks @riking
This commit is contained in:
Robin Ward 2014-11-05 11:52:22 -05:00
parent d22b668393
commit ea0c6df839

View file

@ -30,7 +30,7 @@ export default ObjectController.extend({
hasCardBadgeImage: function() { hasCardBadgeImage: function() {
var img = this.get('user.card_badge.image'); var img = this.get('user.card_badge.image');
return img && img.indexOf('fa-') === -1; return img && img.indexOf('fa-') === 0;
}.property('user.card_badge.image'), }.property('user.card_badge.image'),
show: function(username, uploadedAvatarId) { show: function(username, uploadedAvatarId) {