mirror of https://github.com/BTCPrivate/copay.git
remove update emit
This commit is contained in:
parent
24609c6b15
commit
fb4662663d
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue