mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -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 () {
|
$scope.removeRefreshInventories = $scope.$on('RefreshInventories', function () {
|
||||||
// Reflect changes after inventory properties edit completes
|
// Reflect changes after inventory properties edit completes
|
||||||
|
console.log('here!!');
|
||||||
$scope.search(list.iterator);
|
$scope.search(list.iterator);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -354,6 +354,7 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis
|
|||||||
catch(err) {
|
catch(err) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
parent_scope.$emit('RefreshInventories');
|
||||||
scope.$destroy();
|
scope.$destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -382,8 +383,7 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis
|
|||||||
|
|
||||||
scope.saveModal = function () {
|
scope.saveModal = function () {
|
||||||
scope.inventory_id = inventory_id;
|
scope.inventory_id = inventory_id;
|
||||||
parent_scope.inventory_name = scope.inventory_name;
|
SaveInventory({ scope: scope, parent_scope: parent_scope });
|
||||||
SaveInventory({ scope: scope });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user