set bws url for each wallet
This commit is contained in:
parent
a75bbe6e45
commit
24609c6b15
6 changed files with 68 additions and 77 deletions
|
|
@ -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