update scope after delete wallet - receive tab
This commit is contained in:
parent
c3dd222c68
commit
34ffd7d0fb
1 changed files with 7 additions and 3 deletions
|
|
@ -152,7 +152,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
$scope.loadAddresses(wallet);
|
$scope.loadAddresses(wallet);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
$rootScope.$on('bwsEvent', function(e, walletId, type, n) {
|
$rootScope.$on('bwsEvent', function(e, walletId, type, n) {
|
||||||
// Update current address
|
// Update current address
|
||||||
|
|
@ -161,7 +160,12 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
];
|
];
|
||||||
|
|
||||||
// Update current wallet
|
// Update current wallet
|
||||||
if ($scope.wallet) $scope.updateCurrentWallet();
|
if ($scope.wallet) {
|
||||||
|
var w = lodash.find($scope.wallets, function(w) {
|
||||||
|
return w.id == $scope.wallet.id;
|
||||||
|
});
|
||||||
|
if (w) $scope.updateCurrentWallet();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.leave", function(event, data) {
|
$scope.$on("$ionicView.leave", function(event, data) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue