set bws url for each wallet
This commit is contained in:
parent
a75bbe6e45
commit
24609c6b15
6 changed files with 68 additions and 77 deletions
|
|
@ -118,7 +118,6 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
configService.set(opts_, function(err) {
|
||||
if (err) console.log(err);
|
||||
$scope.$emit('Local/BWSUpdated');
|
||||
applicationService.restart();
|
||||
go.walletHome();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
configService.set(opts, function(err) {
|
||||
if (err) return cb(err);
|
||||
$scope.$emit('Local/BWSUpdated');
|
||||
applicationService.restart();
|
||||
return cb(null);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -840,9 +840,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
self.initGlidera = function(accessToken) {
|
||||
self.glideraEnabled = configService.getSync().glidera.enabled;
|
||||
// self.glideraTestnet = configService.getSync().glidera.testnet;
|
||||
// var network = self.glideraTestnet ? 'testnet' : 'livenet';
|
||||
// Disabled for testnet
|
||||
// self.glideraTestnet = configService.getSync().glidera.testnet;
|
||||
// var network = self.glideraTestnet ? 'testnet' : 'livenet';
|
||||
// Disabled for testnet
|
||||
self.glideraTestnet = false;
|
||||
var network = 'livenet';
|
||||
|
||||
|
|
@ -1005,11 +1005,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
}, cb);
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/BWSUpdated', function(event) {
|
||||
profileService.applyConfig();
|
||||
storageService.setCleanAndScanAddresses(function() {});
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/WalletCompleted', function(event) {
|
||||
self.setFocusedWallet();
|
||||
go.walletHome();
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ angular.module('copayApp.controllers').controller('joinController',
|
|||
configService.set(opts_, function(err) {
|
||||
if (err) console.log(err);
|
||||
$scope.$emit('Local/BWSUpdated');
|
||||
applicationService.restart();
|
||||
});
|
||||
|
||||
if (fc.isComplete() && (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey)) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
|
||||
function($scope, $log, configService, go, applicationService, profileService) {
|
||||
function($scope, $log, configService, go, applicationService, profileService, storageService) {
|
||||
this.error = null;
|
||||
this.success = null;
|
||||
|
||||
|
|
@ -35,15 +35,16 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
|
|||
this.bwsurl = bws;
|
||||
}
|
||||
|
||||
var opts = {
|
||||
bws: {}
|
||||
};
|
||||
opts.bws[walletId] = this.bwsurl;
|
||||
var opts = {
|
||||
bws: {}
|
||||
};
|
||||
opts.bws[walletId] = this.bwsurl;
|
||||
|
||||
configService.set(opts, function(err) {
|
||||
if (err) console.log(err);
|
||||
$scope.$emit('Local/BWSUpdated');
|
||||
configService.set(opts, function(err) {
|
||||
if (err) console.log(err);
|
||||
storageService.setCleanAndScanAddresses(function() {
|
||||
applicationService.restart();
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue