fix toggle switch on create wallet
This commit is contained in:
parent
4964a3d7c3
commit
453b129892
3 changed files with 16 additions and 8 deletions
|
|
@ -79,7 +79,6 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
self.seedSourceId = $scope.seedSource.id;
|
||||
};
|
||||
|
||||
|
||||
this.setSeedSource = function(src) {
|
||||
self.seedSourceId = $scope.seedSource.id;
|
||||
|
||||
|
|
@ -99,7 +98,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
n: $scope.totalCopayers,
|
||||
name: $scope.walletName,
|
||||
myName: $scope.totalCopayers > 1 ? $scope.myName : null,
|
||||
networkName: $scope.isTestnet ? 'testnet' : 'livenet',
|
||||
networkName: $scope.testnetEnabled ? 'testnet' : 'livenet',
|
||||
bwsurl: $scope.bwsurl,
|
||||
walletPrivKey: $scope._walletPrivKey, // Only for testing
|
||||
};
|
||||
|
|
@ -140,7 +139,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
return;
|
||||
}
|
||||
|
||||
if ( self.seedSourceId == 'trezor')
|
||||
if (self.seedSourceId == 'trezor')
|
||||
account = account - 1;
|
||||
|
||||
opts.account = account;
|
||||
|
|
@ -183,8 +182,8 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
}, 100);
|
||||
}
|
||||
|
||||
function scrollUp(location){
|
||||
if(!location) return;
|
||||
function scrollUp(location) {
|
||||
if (!location) return;
|
||||
$location.hash(location);
|
||||
$anchorScroll();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue