From 74e9834c42ea6b6315dfc6285e65dfffd19193a1 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 23 Aug 2017 13:45:11 -0400 Subject: [PATCH] adding inventory column to smart inventory host search modal --- .../host-filter-modal/host-filter-modal.directive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 90a04bbbc5..caad82cc41 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 @@ -44,11 +44,12 @@ export default ['templateUrl', function(templateUrl) { let hostList = _.cloneDeep(HostsList); delete hostList.fields.toggleHost; delete hostList.fields.active_failures; - delete hostList.fields.inventory; delete hostList.fields.name.ngClick; hostList.fields.name.class += " HostFilterModal-tableRow"; hostList.fields.name.noLink = true; hostList.well = false; + delete hostList.fields.inventory.ngClick; + hostList.fields.inventory.ngBind = 'host.summary_fields.inventory.name'; let html = GenerateList.build({ list: hostList, input_type: 'host-filter-modal-body', @@ -79,7 +80,6 @@ export default ['templateUrl', function(templateUrl) { $scope.destroyModal(); }; - }] }; }];