From 75bac0204d9504d50c71d4778e96f89278e9aaab Mon Sep 17 00:00:00 2001 From: Ken Hoes Date: Tue, 7 Jun 2016 15:15:55 -0400 Subject: [PATCH] Fixing display of lists for users/super-users empty/non-empty lists --- awx/ui/client/src/shared/form-generator.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index a53e7d28bb..7912ab1827 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1846,12 +1846,10 @@ 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 - var emptyListText = (collection.emptyListText) ? collection.emptyListText : "PLEASE ADD ITEMS TO THIS LIST"; - html += '
'; - html += "
" + emptyListText + "
"; - html += '
'; - //} + var emptyListText = (collection.emptyListText) ? collection.emptyListText : "PLEASE ADD ITEMS TO THIS LIST"; + html += '
'; + html += "
" + emptyListText + "
"; + html += '
'; html += `