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;
|
opts_.bws[walletId] = $scope.bwsurl;
|
||||||
configService.set(opts_, function(err) {
|
configService.set(opts_, function(err) {
|
||||||
if (err) console.log(err);
|
if (err) console.log(err);
|
||||||
$scope.$emit('Local/BWSUpdated');
|
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -23,14 +23,13 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var setBwsurl = function(walletId, cb) {
|
var setBwsURL = function(walletId, cb) {
|
||||||
var opts = {
|
var opts = {
|
||||||
bws: {}
|
bws: {}
|
||||||
};
|
};
|
||||||
opts.bws[walletId] = $scope.bwsurl;
|
opts.bws[walletId] = $scope.bwsurl;
|
||||||
configService.set(opts, function(err) {
|
configService.set(opts, function(err) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
$scope.$emit('Local/BWSUpdated');
|
|
||||||
return cb(null);
|
return cb(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -63,7 +62,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
if (err) {
|
if (err) {
|
||||||
self.error = err;
|
self.error = err;
|
||||||
} else {
|
} else {
|
||||||
setBwsurl(walletId, function() {
|
setBwsURL(walletId, function() {
|
||||||
$rootScope.$emit('Local/WalletImported', walletId);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
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);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
@ -107,7 +106,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setBwsurl(walletId, function() {
|
setBwsURL(walletId, function() {
|
||||||
$rootScope.$emit('Local/WalletImported', walletId);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
@ -224,7 +223,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setBwsurl(walletId, function() {
|
setBwsURL(walletId, function() {
|
||||||
$rootScope.$emit('Local/WalletImported', walletId);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
@ -262,7 +261,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setBwsurl(walletId, function() {
|
setBwsURL(walletId, function() {
|
||||||
$rootScope.$emit('Local/WalletImported', walletId);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
notification.success(gettext('Success'), gettext('Your wallet has been imported correctly'));
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
|
|
@ -83,7 +83,6 @@ angular.module('copayApp.controllers').controller('joinController',
|
||||||
opts_.bws[fc.credentials.walletId] = $scope.bwsurl;
|
opts_.bws[fc.credentials.walletId] = $scope.bwsurl;
|
||||||
configService.set(opts_, function(err) {
|
configService.set(opts_, function(err) {
|
||||||
if (err) console.log(err);
|
if (err) console.log(err);
|
||||||
$scope.$emit('Local/BWSUpdated');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (fc.isComplete() && (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey)) {
|
if (fc.isComplete() && (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey)) {
|
||||||
|
|
Loading…
Reference in New Issue