mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 15:08:03 -03:30
Made the empty list text a configurable item that can be passed to the list generator. If it's not passed in we fall back to the existing string.
This commit is contained in:
parent
799426df87
commit
635634b12d
@ -260,6 +260,7 @@ table, tbody {
|
||||
border: 1px solid @list-no-items-bord;
|
||||
background-color: @list-no-items-bg;
|
||||
color: @list-no-items-txt;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.List-editButton--selected {
|
||||
|
||||
@ -14,6 +14,7 @@ export default
|
||||
editTitle: 'Activity Stream',
|
||||
listTitle: 'Activity Stream<span ng-show="streamSubTitle"><div class="List-titleLockup"></div>{{streamSubTitle}}<span>',
|
||||
listTitleBadge: false,
|
||||
emptyListText: 'There are no events to display at this time',
|
||||
selectInstructions: '',
|
||||
index: false,
|
||||
hover: true,
|
||||
|
||||
@ -348,7 +348,9 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate
|
||||
}
|
||||
|
||||
// Show the "no items" box when loading is done and the user isn't actively searching and there are no results
|
||||
html += "<div class=\"List-noItems\" ng-show=\"" + list.iterator + "Loading == false && " + list.iterator + "_active_search == false && " + list.iterator + "_total_rows < 1\">PLEASE ADD ITEMS TO THIS LIST</div>";
|
||||
html += "<div class=\"List-noItems\" ng-show=\"" + list.iterator + "Loading == false && " + list.iterator + "_active_search == false && " + list.iterator + "_total_rows < 1\">";
|
||||
html += (list.emptyListText) ? list.emptyListText : "PLEASE ADD ITEMS TO THIS LIST";
|
||||
html += "</div>";
|
||||
|
||||
if (options.showSearch=== undefined || options.showSearch === true) {
|
||||
// Only show the search bar if we are loading results or if we have at least 1 base result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user