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 += ` -
-
0)\" - ng-hide=\"is_superuser && ${collection.hideOnSuperuser}\" - > - ${tagSearch} -
-
-
- ${actionButtons} -
-
-
+
+
0) && + !(is_superuser && ${hideOnSuperuser})\"> + ${tagSearch} +
+
+
+ ${actionButtons} +
+
+
`; // Message for when a search returns no results. This should only get shown after a search is executed with no results. - var hideOnSuperuser = (hideOnSuperuser === true) ? true : false; + html += ` -
-
- No records matched your search. -
-
+
+
+ No records matched your search. +
+
`; // Show the "no items" box when loading is done and the user isn't actively searching and there are no results html += "
PLEASE ADD ITEMS TO THIS LIST
"; html += ` -
- System Administrators have access to all ${collection.iterator}s -
+
+ System Administrators have access to all ${collection.iterator}s +
`; // Start the list html += ` -
0)) && - !(is_superuser && ${collection.hideOnSuperuser})\"> - - - +
0)) && + !(is_superuser && ${collection.hideOnSuperuser})\"> +
+ + `; html += (collection.index === undefined || collection.index !== false) ? "\n" : ""; for (fld in collection.fields) {
#