From d0c9d8ce4ed1e0a431cad1eb96d798e74c1902d9 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 28 Aug 2017 12:37:41 -0400 Subject: [PATCH 1/2] Updated smart inv host filter list empty text --- .../host-filter-modal/host-filter-modal.directive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-host-filter/host-filter-modal/host-filter-modal.directive.js b/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-host-filter/host-filter-modal/host-filter-modal.directive.js index caad82cc41..56998865da 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-host-filter/host-filter-modal/host-filter-modal.directive.js +++ b/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-host-filter/host-filter-modal/host-filter-modal.directive.js @@ -50,6 +50,7 @@ export default ['templateUrl', function(templateUrl) { hostList.well = false; delete hostList.fields.inventory.ngClick; hostList.fields.inventory.ngBind = 'host.summary_fields.inventory.name'; + hostList.emptyListText = 'You must have access to at least one host in order to create a smart inventory host filter'; let html = GenerateList.build({ list: hostList, input_type: 'host-filter-modal-body', From 0be16239a091d433a729e939cad0e2fb833166e9 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 28 Aug 2017 12:43:47 -0400 Subject: [PATCH 2/2] Small tweaks to empty list text styling --- awx/ui/client/legacy-styles/lists.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/client/legacy-styles/lists.less b/awx/ui/client/legacy-styles/lists.less index 149ba2c80d..d3948f6c79 100644 --- a/awx/ui/client/legacy-styles/lists.less +++ b/awx/ui/client/legacy-styles/lists.less @@ -346,6 +346,8 @@ table, tbody { background-color: @default-no-items-bord; color: @list-no-items-txt; text-transform: uppercase; + text-align: center; + padding: 10px; } .modal-body > .List-noItems {