Hide non-Gravatar Avatar Search Results (#2549)
This commit is contained in:
parent
e79555ef95
commit
b822a25a17
1 changed files with 2 additions and 1 deletions
|
@ -286,7 +286,8 @@ angular.module('quay').directive('entitySearch', function () {
|
|||
},
|
||||
'suggestion': function (datum) {
|
||||
template = '<div class="entity-mini-listing">';
|
||||
if ((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org')) {
|
||||
if (Config['AVATAR_KIND'] === 'gravatar' &&
|
||||
((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org'))) {
|
||||
template += '<i class="fa"><img class="avatar-image" src="' +
|
||||
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'mm') +
|
||||
'"></i>';
|
||||
|
|
Reference in a new issue