Merge pull request #6678 from cmgustavo/feat/bitcoin-cash-02

Disable creation of BCH testnet wallet
This commit is contained in:
Matias Alejo Garcia 2017-08-31 18:17:35 -03:00 committed by GitHub
commit 031f71d399
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>