Rename of callback function. Add network name.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-11 10:59:05 -03:00
commit ea7de935d7
2 changed files with 7 additions and 6 deletions

View file

@ -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);