After delete a wallet, select the latest created
This commit is contained in:
parent
19f6118f7f
commit
86d9e9ee2c
1 changed files with 3 additions and 1 deletions
|
|
@ -85,7 +85,9 @@ angular.module('copayApp.controllers').controller('MoreController',
|
|||
$scope.deleteWallet = function() {
|
||||
$rootScope.iden.deleteWallet(w.id, function() {
|
||||
notification.info('Wallet deleted', $filter('translate')('wallet deleted'));
|
||||
$location.path('/manage');
|
||||
$rootScope.wallet = null;
|
||||
var lastFocused = $rootScope.iden.profile.getLastFocusedWallet();
|
||||
controllerUtils.bindProfile($scope, $rootScope.iden, lastFocused);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue