From de212d85945682c45284e6f337529aa5ebb0298a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 31 Aug 2016 14:19:28 -0400 Subject: [PATCH] Fix grammar in entity search Fixes #1794 --- static/js/directives/ui/entity-search.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/directives/ui/entity-search.js b/static/js/directives/ui/entity-search.js index 633ff4af7..4611a81ae 100644 --- a/static/js/directives/ui/entity-search.js +++ b/static/js/directives/ui/entity-search.js @@ -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 '
No matching entities found
'; + if (classes.length == 0) { + return '
No matching entities found
'; } var class_string = '';