fix send
This commit is contained in:
parent
4f60626710
commit
1515b9446f
4 changed files with 41 additions and 25 deletions
|
|
@ -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();
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue