diff --git a/inventory_provider/static/update.js b/inventory_provider/static/update.js index d3b92d6ee0b6d463b4c1a34715b8d7aa82f96f47..11d7004c08ef260a5238bc9883c74090476ff2c0 100644 --- a/inventory_provider/static/update.js +++ b/inventory_provider/static/update.js @@ -30,9 +30,6 @@ myApp.controller('update', function($scope, $http, $timeout) { $scope.update_request_status = ""; } $timeout($scope.check_status, 5000); - if ($scope.latch_pending || $scope.latch_error) { - $scope.refresh_update_status(); - } }, /* error response */ function(rsp) { @@ -58,6 +55,7 @@ myApp.controller('update', function($scope, $http, $timeout) { $scope.failed = rsp.data.failed; $scope.warnings = rsp.data.warnings; $scope.errors = rsp.data.errors; + $timeout($scope.refresh_update_status, 2000); }, /* error response */ function(rsp) { @@ -66,6 +64,7 @@ myApp.controller('update', function($scope, $http, $timeout) { $scope.failed = []; $scope.errors = []; $scope.warnings = []; + $timeout($scope.refresh_update_status, 5000); } ); @@ -95,4 +94,6 @@ myApp.controller('update', function($scope, $http, $timeout) { } $scope.check_status(); + $scope.refresh_update_status(); + }); \ No newline at end of file