1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

always start sync all updates

This commit is contained in:
John Mitchell 2017-09-12 12:01:06 -04:00
parent 6068eafeb6
commit 5009f283d5
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -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;