Rename of callback function. Add network name.
This commit is contained in:
parent
ca3e9005a7
commit
ea7de935d7
2 changed files with 7 additions and 6 deletions
|
|
@ -359,12 +359,12 @@ angular.module('copayApp.services')
|
|||
$rootScope.pendingTxCount = res.pendingForUs;
|
||||
};
|
||||
|
||||
root.deleteWallet = function($scope, w, cb) {
|
||||
root.deleteWallet = function($scope, w, skipBind) {
|
||||
w = w || $rootScope.wallet;
|
||||
var name = w.getName();
|
||||
$rootScope.iden.deleteWallet(w.id, function() {
|
||||
notification.info(name + ' deleted', $filter('translate')('Wallet deleted'));
|
||||
if (cb) return cb();
|
||||
if (skipBind) return skipBind();
|
||||
$rootScope.wallet = null;
|
||||
var lastFocused = $rootScope.iden.getLastFocusedWallet();
|
||||
root.bindProfile($scope, $rootScope.iden, lastFocused);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue