Merge pull request #1796 from coreos-inc/ui-fix
Fix grammar in entity search
This commit is contained in:
commit
a6350e7dba
1 changed files with 2 additions and 4 deletions
|
@ -250,10 +250,8 @@ angular.module('quay').directive('entitySearch', function () {
|
|||
if ($scope.isAdmin && isSupported('robot')) { classes.push('robot accounts'); }
|
||||
if ($scope.isOrganization && isSupported('team')) { classes.push('teams'); }
|
||||
|
||||
if (classes.length > 1) {
|
||||
classes[classes.length - 1] = 'or ' + classes[classes.length - 1];
|
||||
} else if (classes.length == 0) {
|
||||
return '<div class="tt-empty">No matching entities found</div>';
|
||||
if (classes.length == 0) {
|
||||
return '<div class="tt-empty">No matching entities found</div>';
|
||||
}
|
||||
|
||||
var class_string = '';
|
||||
|
|
Reference in a new issue