From 5009f283d53e07f7f629379b1cf7db5f6bbd5cb7 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 12 Sep 2017 12:01:06 -0400 Subject: [PATCH] always start sync all updates --- .../inventory-update.factory.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/awx/ui/client/src/job-submission/job-submission-factories/inventory-update.factory.js b/awx/ui/client/src/job-submission/job-submission-factories/inventory-update.factory.js index cb4c0bf983..4bd0046dd2 100644 --- a/awx/ui/client/src/job-submission/job-submission-factories/inventory-update.factory.js +++ b/awx/ui/client/src/job-submission/job-submission-factories/inventory-update.factory.js @@ -44,16 +44,7 @@ export default Rest.get() .success(function (data) { if(params.updateAllSources) { - let userCanUpdateAllSources = true; - _.forEach(data, function(inventory_source){ - if (!inventory_source.can_update) { - userCanUpdateAllSources = false; - } - }); - - if(userCanUpdateAllSources) { - scope.$emit('StartTheUpdate', {}); - } + scope.$emit('StartTheUpdate', {}); } else { inventory_source = data;