This commit is contained in:
Matias Alejo Garcia 2015-04-23 15:19:30 -03:00
commit 1515b9446f
4 changed files with 41 additions and 25 deletions

View file

@ -40,10 +40,23 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.getAddress();
});
var disableTabListener = $rootScope.$on('Local/TabChanged', function(e,tab){
switch(tab) {
case 'send':
self.resetError();
self.setInputs();
case 'receive':
self.getAddress();
break;
};
});
$scope.$on('$destroy', function() {
disableAddrListener();
disableScannerListener();
disablePaymentUriListener();
disableTabListener();
$rootScope.hideMenuBar = false;
});
@ -765,11 +778,4 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
return actions.hasOwnProperty('create');
};
// ToDo a send...
this.resetError();
this.setInputs();
// Todo Receive
this.getAddress();
});