Merge pull request #401 from jlmitch5/fixSyncAll

always start sync all updates
This commit is contained in:
jlmitch5
2017-09-12 15:51:09 -04:00
committed by GitHub

View File

@@ -44,17 +44,8 @@ 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', {});
}
}
else {
inventory_source = data;
if (data.can_update) {