diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js index 4b44585f8f..5777cb4ca6 100644 --- a/awx/ui/static/js/controllers/Inventories.js +++ b/awx/ui/static/js/controllers/Inventories.js @@ -169,6 +169,7 @@ function InventoriesList($scope, $rootScope, $location, $log, $routeParams, $com } $scope.removeRefreshInventories = $scope.$on('RefreshInventories', function () { // Reflect changes after inventory properties edit completes + console.log('here!!'); $scope.search(list.iterator); }); diff --git a/awx/ui/static/js/helpers/inventory.js b/awx/ui/static/js/helpers/inventory.js index 6858aa497c..9fe27a5596 100644 --- a/awx/ui/static/js/helpers/inventory.js +++ b/awx/ui/static/js/helpers/inventory.js @@ -354,6 +354,7 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis catch(err) { // ignore } + parent_scope.$emit('RefreshInventories'); scope.$destroy(); }); @@ -382,8 +383,7 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis scope.saveModal = function () { scope.inventory_id = inventory_id; - parent_scope.inventory_name = scope.inventory_name; - SaveInventory({ scope: scope }); + SaveInventory({ scope: scope, parent_scope: parent_scope }); }; };