mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Inventory edit
After making changes the inventory list was not refreshing.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -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 });
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user