From 210d867c59f4d421a1e3816855fa94fcfd2670f4 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 12 Jun 2017 16:53:03 -0300 Subject: [PATCH] Fix toggle --- src/js/controllers/import.js | 3 ++- www/views/tab-import-phrase.html | 11 ++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/js/controllers/import.js b/src/js/controllers/import.js index 0c3fbdf7d..331a2bfff 100644 --- a/src/js/controllers/import.js +++ b/src/js/controllers/import.js @@ -17,6 +17,7 @@ angular.module('copayApp.controllers').controller('importController', $scope.formData.account = 1; $scope.importErr = false; $scope.isCopay = appConfigService.name == 'copay'; + $scope.fromHardwareWallet = { value: false }; if ($stateParams.code) $scope.processWalletInfo($stateParams.code); @@ -273,7 +274,7 @@ angular.module('copayApp.controllers').controller('importController', opts.passphrase = $scope.formData.passphrase || null; - if ($scope.formData.fromHardwareWallet) { + if ($scope.fromHardwareWallet.value) { $log.debug('Importing seed from hardware wallet'); $log.warn('This wont work for Intel TEE wallets'); diff --git a/www/views/tab-import-phrase.html b/www/views/tab-import-phrase.html index 50d021038..5b692f17e 100644 --- a/www/views/tab-import-phrase.html +++ b/www/views/tab-import-phrase.html @@ -50,11 +50,16 @@ - - From Hardware Wallet + + From Hardware Wallet - + Testnet