mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Stop making rest calls for inventory source sync updates on inventory sources list
This commit is contained in:
@@ -42,21 +42,7 @@
|
|||||||
$scope.$on(`ws-jobs`, function(e, data){
|
$scope.$on(`ws-jobs`, function(e, data){
|
||||||
inventory_source = Find({ list: $scope.inventory_sources, key: 'id', val: data.inventory_source_id });
|
inventory_source = Find({ list: $scope.inventory_sources, key: 'id', val: data.inventory_source_id });
|
||||||
|
|
||||||
if (inventory_source === undefined || inventory_source === null) {
|
if (inventory_source) {
|
||||||
inventory_source = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
if(data.status === 'failed' || data.status === 'successful'){
|
|
||||||
let path = GetBasePath('inventory') + $stateParams.inventory_id + '/inventory_sources';
|
|
||||||
|
|
||||||
qs.search(path, $state.params[`${list.iterator}_search`])
|
|
||||||
.then((searchResponse)=> {
|
|
||||||
$scope[`${list.iterator}_dataset`] = searchResponse.data;
|
|
||||||
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
|
||||||
_.forEach($scope[list.name], buildStatusIndicators);
|
|
||||||
optionsRequestDataProcessing();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
var status = GetSyncStatusMsg({
|
var status = GetSyncStatusMsg({
|
||||||
status: data.status
|
status: data.status
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user