fix toggle switch on create wallet

This commit is contained in:
Javier 2016-05-19 18:18:05 -03:00
commit 453b129892
3 changed files with 16 additions and 8 deletions

View file

@ -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();
};