Disable creation of BCH testnet wallet

This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-31 18:13:15 -03:00
commit 75e0397e0d
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 3 additions and 3 deletions

View file

@ -138,7 +138,7 @@ angular.module('copayApp.controllers').controller('createController',
m: $scope.formData.requiredCopayers,
n: $scope.formData.totalCopayers,
myName: $scope.formData.totalCopayers > 1 ? $scope.formData.myName : null,
networkName: $scope.formData.testnetEnabled ? 'testnet' : 'livenet',
networkName: $scope.formData.testnetEnabled && $scope.formData.coin != 'bch' ? 'testnet' : 'livenet',
bwsurl: $scope.formData.bwsurl,
singleAddress: $scope.formData.singleAddressEnabled,
walletPrivKey: $scope.formData._walletPrivKey, // Only for testing

View file

@ -114,7 +114,7 @@
ng-model="formData.derivationPath">
</label>
<ion-toggle ng-show="formData.seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
<ion-toggle ng-show="formData.seedSource.supportsTestnet && formData.coin == 'btc'" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
<span translate>Testnet</span>
</ion-toggle>

View file

@ -143,7 +143,7 @@
ng-model="formData.derivationPath">
</label>
<ion-toggle ng-show="formData.seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
<ion-toggle ng-show="formData.seedSource.supportsTestnet && formData.coin == 'btc'" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
Testnet
</ion-toggle>