diff --git a/awx/ui/client/src/helpers/related-search.js b/awx/ui/client/src/helpers/related-search.js index 04bb72f071..d05a19e57a 100644 --- a/awx/ui/client/src/helpers/related-search.js +++ b/awx/ui/client/src/helpers/related-search.js @@ -167,6 +167,13 @@ export default scope[iterator + 'ShowStartBtn'] = false; } + if(scope[iterator + 'SearchValue'] && scope[iterator + 'SearchValue'] !== '') { + scope[iterator + '_active_search'] = true; + } + else { + scope[iterator + '_active_search'] = false; + } + if (iterator === 'host') { if (scope.hostSearchField === 'has_active_failures') { if (scope.hostSearchSelectValue && scope.hostSearchSelectValue.value === 1) { @@ -230,7 +237,6 @@ export default url += (url.match(/\/$/)) ? '?' : '&'; url += scope[iterator + 'SearchParams']; url += (scope[iterator + '_page_size']) ? '&page_size=' + scope[iterator + '_page_size'] : ""; - scope[iterator + '_active_search'] = true; RefreshRelated({ scope: scope, set: set, iterator: iterator, url: url }); }; diff --git a/awx/ui/client/src/login/loginModal/loginModal.controller.js b/awx/ui/client/src/login/loginModal/loginModal.controller.js index 04602805c4..5e13da141f 100644 --- a/awx/ui/client/src/login/loginModal/loginModal.controller.js +++ b/awx/ui/client/src/login/loginModal/loginModal.controller.js @@ -119,7 +119,7 @@ export default ['$log', '$cookieStore', '$compile', '$window', '$rootScope', '$l // Go back to most recent navigation path $location.path(lastPath()); } else { - $location.url('/home?login=true'); + $location.url('/home'); } }) .error(function () { diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 10930e6ac7..8680d8d230 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1780,61 +1780,61 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat actionButtons += ActionButton(collection .actions[act]); }); + var hideOnSuperuser = (hideOnSuperuser === true) ? true : false; html += ` -
| # | \n" : ""; for (fld in collection.fields) {
|---|