mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5583 from JDonadio/bug/delete-wallet-02
Update scope after delete wallet - receive tab
This commit is contained in:
commit
fc07571811
|
@ -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…
Reference in New Issue