mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
always start sync all updates
This commit is contained in:
@@ -44,16 +44,7 @@ export default
|
|||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
if(params.updateAllSources) {
|
if(params.updateAllSources) {
|
||||||
let userCanUpdateAllSources = true;
|
scope.$emit('StartTheUpdate', {});
|
||||||
_.forEach(data, function(inventory_source){
|
|
||||||
if (!inventory_source.can_update) {
|
|
||||||
userCanUpdateAllSources = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if(userCanUpdateAllSources) {
|
|
||||||
scope.$emit('StartTheUpdate', {});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
inventory_source = data;
|
inventory_source = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user