Fixed list message boxes for super and non-super user edits

This commit is contained in:
Ken Hoes 2016-05-27 12:13:16 -04:00
parent 240b35c8d4
commit 091c567035
2 changed files with 5 additions and 5 deletions

View File

@ -138,8 +138,6 @@ export default
iterator: 'team',
open: false,
index: false,
suppressEmptyText: true,
actions: {},
fields: {

View File

@ -1839,10 +1839,12 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
// Show the "no items" box when loading is done and the user isn't actively searching and there are no results
// Allow for the suppression of the empty list text to avoid duplication between form generator and list generator
if(!collection.suppressEmptyText || collection.suppressEmptyText === false) {
//if(collection.hideOnSuperuser && collection.hideOnSuperuser !== true) {
var emptyListText = (collection.emptyListText) ? collection.emptyListText : "PLEASE ADD ITEMS TO THIS LIST";
html += "<div class=\"List-noItems\" ng-show=\"" + collection.iterator + "Loading == false && " + collection.iterator + "_active_search == false && " + collection.iterator + "_total_rows < 1\">" + emptyListText + "</div>";
}
html += '<div ng-hide="is_superuser">';
html += "<div class=\"List-noItems\" ng-hide=\"is_superuser\" ng-show=\"" + collection.iterator + "Loading == false && " + collection.iterator + "_active_search == false && " + collection.iterator + "_total_rows < 1\">" + emptyListText + "</div>";
html += '</div>';
//}
html += `
<div class=\"List-noItems\" ng-show=\"is_superuser\">