mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Merge pull request #401 from jlmitch5/fixSyncAll
always start sync all updates
This commit is contained in:
commit
8a282030a1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user