make explicit refreshes when storing wallet

This commit is contained in:
Manuel Araoz 2014-05-09 11:59:38 -03:00
commit 22cd4cae94
2 changed files with 25 additions and 29 deletions

View file

@ -80,6 +80,7 @@ angular.module('copay.controllerUtils')
$location.path('addresses');
});
w.on('refresh', function() {
//alert('refresh');
root.updateBalance(function() {
$rootScope.$digest();
});
@ -93,6 +94,7 @@ angular.module('copay.controllerUtils')
w.on('openError', root.onErrorDigest);
w.on('peer', function(peerID) {
video.callPeer(peerID, handlePeerVideo);
$rootScope.$digest();
});
w.on('close', root.onErrorDigest);
w.netStart();