diff --git a/awx/ui/client/src/search/tagSearch.block.less b/awx/ui/client/src/search/tagSearch.block.less index a24f4669ce..118bec4dfb 100644 --- a/awx/ui/client/src/search/tagSearch.block.less +++ b/awx/ui/client/src/search/tagSearch.block.less @@ -34,6 +34,11 @@ position: relative; } +.TagSearch-typeDropdown.is-single { + cursor: default; + padding-right: 12px; +} + .TagSearch-typeDropdown.is-open { border-bottom-left-radius: 0; } diff --git a/awx/ui/client/src/search/tagSearch.controller.js b/awx/ui/client/src/search/tagSearch.controller.js index 8715237e84..a22bcfaf8f 100644 --- a/awx/ui/client/src/search/tagSearch.controller.js +++ b/awx/ui/client/src/search/tagSearch.controller.js @@ -15,7 +15,9 @@ export default ['$scope', 'Refresh', 'tagSearchService', // shows/hide the search type dropdown $scope.toggleTypeDropdown = function() { - $scope.showTypeDropdown = !$scope.showTypeDropdown; + if ($scope.searchTypes.length > 1) { + $scope.showTypeDropdown = !$scope.showTypeDropdown; + } }; // sets the search type dropdown and hides it diff --git a/awx/ui/client/src/search/tagSearch.partial.html b/awx/ui/client/src/search/tagSearch.partial.html index 65798db4a4..cceafa7b37 100644 --- a/awx/ui/client/src/search/tagSearch.partial.html +++ b/awx/ui/client/src/search/tagSearch.partial.html @@ -3,7 +3,7 @@
{{ currentSearchType.label }}