remove update emit

This commit is contained in:
Javier 2015-10-19 11:23:59 -03:00
parent 24609c6b15
commit fb4662663d
3 changed files with 6 additions and 9 deletions

View File

@ -117,7 +117,6 @@ angular.module('copayApp.controllers').controller('createController',
opts_.bws[walletId] = $scope.bwsurl;
configService.set(opts_, function(err) {
if (err) console.log(err);
$scope.$emit('Local/BWSUpdated');
go.walletHome();
});

View File

@ -23,14 +23,13 @@ angular.module('copayApp.controllers').controller('importController',
});
};
var setBwsurl = function(walletId, cb) {
var setBwsURL = function(walletId, cb) {
var opts = {
bws: {}
};
opts.bws[walletId] = $scope.bwsurl;
configService.set(opts, function(err) {
if (err) return cb(err);
$scope.$emit('Local/BWSUpdated');
return cb(null);
});
}
@ -63,7 +62,7 @@ angular.module('copayApp.controllers').controller('importController',
if (err) {
self.error = err;
} else {
setBwsurl(walletId, function() {
setBwsURL(walletId, function() {
$rootScope.$emit('Local/WalletImported', walletId);
go.walletHome();
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
@ -86,7 +85,7 @@ angular.module('copayApp.controllers').controller('importController',
});
}
setBwsurl(walletId, function() {
setBwsURL(walletId, function() {
$rootScope.$emit('Local/WalletImported', walletId);
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
go.walletHome();
@ -107,7 +106,7 @@ angular.module('copayApp.controllers').controller('importController',
$scope.$apply();
});
}
setBwsurl(walletId, function() {
setBwsURL(walletId, function() {
$rootScope.$emit('Local/WalletImported', walletId);
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
go.walletHome();
@ -224,7 +223,7 @@ angular.module('copayApp.controllers').controller('importController',
$scope.$apply();
});
}
setBwsurl(walletId, function() {
setBwsURL(walletId, function() {
$rootScope.$emit('Local/WalletImported', walletId);
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
go.walletHome();
@ -262,7 +261,7 @@ angular.module('copayApp.controllers').controller('importController',
$scope.$apply();
});
}
setBwsurl(walletId, function() {
setBwsURL(walletId, function() {
$rootScope.$emit('Local/WalletImported', walletId);
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
go.walletHome();

View File

@ -83,7 +83,6 @@ angular.module('copayApp.controllers').controller('joinController',
opts_.bws[fc.credentials.walletId] = $scope.bwsurl;
configService.set(opts_, function(err) {
if (err) console.log(err);
$scope.$emit('Local/BWSUpdated');
});
if (fc.isComplete() && (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey)) {