mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Merge pull request #892 from mabashian/empty-list-text
Made empty list text configurable
This commit is contained in:
commit
ca665a548f
@ -266,6 +266,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,
|
||||
|
||||
@ -353,7 +353,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