Merge pull request #892 from mabashian/empty-list-text

Made empty list text configurable
This commit is contained in:
Michael Abashian 2016-02-09 16:53:02 -05:00
commit ca665a548f
3 changed files with 5 additions and 1 deletions

View File

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

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

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