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:
parent
d22b668393
commit
ea0c6df839
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue