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
commit 8a282030a1

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;