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:
Michael Abashian 2016-02-09 16:27:24 -05:00
parent 799426df87
commit 635634b12d
3 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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,

View File

@ -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