mirror of https://github.com/BTCPrivate/copay.git
Fix toggle
This commit is contained in:
parent
da15bc939b
commit
210d867c59
|
@ -17,6 +17,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
$scope.formData.account = 1;
|
$scope.formData.account = 1;
|
||||||
$scope.importErr = false;
|
$scope.importErr = false;
|
||||||
$scope.isCopay = appConfigService.name == 'copay';
|
$scope.isCopay = appConfigService.name == 'copay';
|
||||||
|
$scope.fromHardwareWallet = { value: false };
|
||||||
|
|
||||||
if ($stateParams.code)
|
if ($stateParams.code)
|
||||||
$scope.processWalletInfo($stateParams.code);
|
$scope.processWalletInfo($stateParams.code);
|
||||||
|
@ -273,7 +274,7 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
|
|
||||||
opts.passphrase = $scope.formData.passphrase || null;
|
opts.passphrase = $scope.formData.passphrase || null;
|
||||||
|
|
||||||
if ($scope.formData.fromHardwareWallet) {
|
if ($scope.fromHardwareWallet.value) {
|
||||||
$log.debug('Importing seed from hardware wallet');
|
$log.debug('Importing seed from hardware wallet');
|
||||||
$log.warn('This wont work for Intel TEE wallets');
|
$log.warn('This wont work for Intel TEE wallets');
|
||||||
|
|
||||||
|
|
|
@ -50,11 +50,16 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
||||||
<ion-toggle ng-model="formData.fromHardwareWallet" toggle-class="toggle-positive">
|
<ion-toggle ng-model="fromHardwareWallet.value" toggle-class="toggle-positive">
|
||||||
<span translate>From Hardware Wallet</span>
|
<span class="toggle-label" translate>From Hardware Wallet</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
|
|
||||||
<select ng-model="formData.seedSourceAll" ng-options="seed as seed.label for seed in seedOptionsAll"></select>
|
<label class="item item-input item-select" ng-if="fromHardwareWallet.value">
|
||||||
|
<div class="input-label" translate>
|
||||||
|
Wallet Type
|
||||||
|
</div>
|
||||||
|
<select class="m10t" ng-model="formData.seedSourceAll" ng-options="seed as seed.label for seed in seedOptionsAll"></select>
|
||||||
|
</label>
|
||||||
|
|
||||||
<ion-toggle ng-model="formData.testnetEnabled" ng-change="setDerivationPath()" toggle-class="toggle-positive">
|
<ion-toggle ng-model="formData.testnetEnabled" ng-change="setDerivationPath()" toggle-class="toggle-positive">
|
||||||
<span translate>Testnet</span>
|
<span translate>Testnet</span>
|
||||||
|
|
Loading…
Reference in New Issue