Merge pull request #459 from jamal-jackson/feature/recieve_view_polish

receive view polish on mobile
This commit is contained in:
Matias Alejo Garcia 2016-10-14 17:42:06 -03:00 committed by GitHub
commit fe9fe0c612
5 changed files with 113 additions and 25 deletions

View file

@ -74,6 +74,10 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$log.debug('No wallet provided');
return;
}
if (wallet == $scope.wallet) {
$log.debug('No change in wallet');
return;
}
$scope.wallet = wallet;
$log.debug('Wallet changed: ' + wallet.name);
$timeout(function() {
@ -83,5 +87,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.wallets = profileService.getWallets();
$scope.wallet = $scope.wallets[0];
$scope.setAddress();
});
});