mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -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;
|
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 (iterator === 'host') {
|
||||||
if (scope.hostSearchField === 'has_active_failures') {
|
if (scope.hostSearchField === 'has_active_failures') {
|
||||||
if (scope.hostSearchSelectValue && scope.hostSearchSelectValue.value === 1) {
|
if (scope.hostSearchSelectValue && scope.hostSearchSelectValue.value === 1) {
|
||||||
@@ -230,7 +237,6 @@ export default
|
|||||||
url += (url.match(/\/$/)) ? '?' : '&';
|
url += (url.match(/\/$/)) ? '?' : '&';
|
||||||
url += scope[iterator + 'SearchParams'];
|
url += scope[iterator + 'SearchParams'];
|
||||||
url += (scope[iterator + '_page_size']) ? '&page_size=' + scope[iterator + '_page_size'] : "";
|
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 });
|
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
|
// Go back to most recent navigation path
|
||||||
$location.path(lastPath());
|
$location.path(lastPath());
|
||||||
} else {
|
} else {
|
||||||
$location.url('/home?login=true');
|
$location.url('/home');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.error(function () {
|
.error(function () {
|
||||||
|
|||||||
@@ -1780,6 +1780,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
actionButtons += ActionButton(collection
|
actionButtons += ActionButton(collection
|
||||||
.actions[act]);
|
.actions[act]);
|
||||||
});
|
});
|
||||||
|
var hideOnSuperuser = (hideOnSuperuser === true) ? true : false;
|
||||||
|
|
||||||
html += `
|
html += `
|
||||||
<div class=\"row\"
|
<div class=\"row\"
|
||||||
@@ -1789,9 +1790,8 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
${collection.iterator}_active_search == true || (
|
${collection.iterator}_active_search == true || (
|
||||||
${collection.iterator}Loading == false &&
|
${collection.iterator}Loading == false &&
|
||||||
${collection.iterator}_active_search == false &&
|
${collection.iterator}_active_search == false &&
|
||||||
${collection.iterator}_total_rows > 0)\"
|
${collection.iterator}_total_rows > 0) &&
|
||||||
ng-hide=\"is_superuser && ${collection.hideOnSuperuser}\"
|
!(is_superuser && ${hideOnSuperuser})\">
|
||||||
>
|
|
||||||
${tagSearch}
|
${tagSearch}
|
||||||
</div>
|
</div>
|
||||||
<div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12\">
|
<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.
|
// 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 += `
|
html += `
|
||||||
<div
|
<div
|
||||||
class=\"row\"
|
class=\"row\"
|
||||||
|
|||||||
Reference in New Issue
Block a user