fixes SHARED Wallet status, and refresh until it changes

This commit is contained in:
Matias Alejo Garcia 2016-03-09 11:53:47 -03:00
commit 3b5387fb70
7 changed files with 103 additions and 35 deletions

View file

@ -47,12 +47,12 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.setAddress(true);
});
var disableFocusListener = $rootScope.$on('Local/NewFocusedWallet', function() {
var disableFocusListener = $rootScope.$on('Local/NewFocusedWalletReady', function() {
self.addr = null;
self.resetForm();
$scope.search = '';
if (profileService.focusedClient) {
if (profileService.focusedClient && rofileService.focusedClient.isComplete) {
self.setAddress();
self.setSendFormInputs();
}