mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 16:27:42 -02:30
Merge pull request #1887 from jaredevantabor/related-search
Fixing related tab empty list styling
This commit is contained in:
@@ -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 });
|
||||
};
|
||||
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -1780,6 +1780,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
actionButtons += ActionButton(collection
|
||||
.actions[act]);
|
||||
});
|
||||
var hideOnSuperuser = (hideOnSuperuser === true) ? true : false;
|
||||
|
||||
html += `
|
||||
<div class=\"row\"
|
||||
@@ -1789,9 +1790,8 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
${collection.iterator}_active_search == true || (
|
||||
${collection.iterator}Loading == false &&
|
||||
${collection.iterator}_active_search == false &&
|
||||
${collection.iterator}_total_rows > 0)\"
|
||||
ng-hide=\"is_superuser && ${collection.hideOnSuperuser}\"
|
||||
>
|
||||
${collection.iterator}_total_rows > 0) &&
|
||||
!(is_superuser && ${hideOnSuperuser})\">
|
||||
${tagSearch}
|
||||
</div>
|
||||
<div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12\">
|
||||
@@ -1803,7 +1803,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
`;
|
||||
|
||||
// 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 += `
|
||||
<div
|
||||
class=\"row\"
|
||||
|
||||
Reference in New Issue
Block a user