mirror of https://github.com/BTCPrivate/copay.git
fix toggle switch on create wallet
This commit is contained in:
parent
4964a3d7c3
commit
453b129892
|
@ -152,10 +152,11 @@
|
|||
<input type="text" class="form-control" name="derivationPath" ng-model="derivationPath">
|
||||
</label>
|
||||
</div>
|
||||
<div class="oh" ng-show="create.seedSourceId == 'new'">
|
||||
<label for="network-name" >
|
||||
<div class="oh" ng-show="create.seedSourceId == 'new'">
|
||||
<label for="network-name" class="dbi">
|
||||
<span>Testnet</span>
|
||||
<switch id="network-name" name="isTestnet" ng-model="isTestnet" class="green right m5t m10b"></switch>
|
||||
<ion-toggle ng-model="testnetEnabled" toggle-class="toggle-balanced" class="bct">
|
||||
</ion-toggle>
|
||||
</label>
|
||||
</div>
|
||||
</div> <!-- columns -->
|
||||
|
|
|
@ -16,6 +16,14 @@
|
|||
display: inherit;
|
||||
}
|
||||
|
||||
.bct {
|
||||
background-color: transparent !important;
|
||||
margin-top: -25px;
|
||||
padding-bottom: 30px;
|
||||
right: -27px !important;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.item-toggle .toggle {
|
||||
right: 28px;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue