Adds support for 2-step balance

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-13 12:08:13 -03:00
commit 79f61c29f8
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 9 additions and 3 deletions

View file

@ -300,7 +300,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
return cb(null, opts.walletStatus);
else {
self.updateError = false;
return fc.getStatus({}, function(err, ret) {
return fc.getStatus({ twoStep : true }, function(err, ret) {
if (err) {
self.updateError = bwsError.msg(err, gettext('Could not update Wallet'));
} else {
@ -1339,6 +1339,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
}
});
$rootScope.$on('BalanceUpdated', function(e, n) {
self.setBalance(n.data);
});
$rootScope.$on('NewOutgoingTx', function() {
self.newTx = true;