fix skip Validation. Replaces scanning with updating

This commit is contained in:
Matias Alejo Garcia 2016-06-14 14:05:25 -03:00
commit 57aecf7e1b
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
2 changed files with 11 additions and 9 deletions

View file

@ -286,7 +286,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
} else {
self.isSingleAddress = !!ret.wallet.singleAddress;
if (!opts.quiet)
ongoingProcess.set('scanning', ret.wallet.scanStatus == 'running');
self.updating = ret.wallet.scanStatus == 'running';
}
return cb(err, ret);
});
@ -1015,13 +1015,13 @@ angular.module('copayApp.controllers').controller('indexController', function($r
if (!c.isComplete()) return;
if (self.walletId == walletId)
ongoingProcess.set('scanning', true);
self.updating = true;
c.startScan({
includeCopayerBranches: true,
}, function(err) {
if (err && self.walletId == walletId) {
ongoingProcess.set('scanning', false);
self.updating = false;
self.handleError(err);
$rootScope.$apply();
}