fix receive wallet scope
This commit is contained in:
parent
d7fd3035ce
commit
fee7034863
3 changed files with 9 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ Error: {{addrError}}
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<wallets></wallets>
|
||||
<wallets only-complete="true"></wallets>
|
||||
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
|
|
|||
|
|
@ -43,8 +43,11 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
};
|
||||
|
||||
$scope.$on('Wallet/Changed', function(event, wallet) {
|
||||
if (!wallet) {
|
||||
$log.debug('No wallet provided');
|
||||
return;
|
||||
}
|
||||
$log.debug('Wallet changed: ' + wallet.name);
|
||||
$scope.defaultWallet = wallet;
|
||||
$scope.setAddress(wallet);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -163,6 +163,10 @@ angular.module('copayApp.directives')
|
|||
|
||||
if (minBalance)
|
||||
filterWallet();
|
||||
else {
|
||||
scope.content.wallets = wallets;
|
||||
scope.$emit('Wallet/Changed', scope.content.wallets[0]);
|
||||
}
|
||||
|
||||
scope.$on("$ionicSlides.sliderInitialized", function(event, data) {
|
||||
scope.slider = data.slider;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue