diff --git a/src/js/controllers/create.js b/src/js/controllers/create.js index 343422369..da3a2c9c4 100644 --- a/src/js/controllers/create.js +++ b/src/js/controllers/create.js @@ -154,23 +154,23 @@ angular.module('copayApp.controllers').controller('createController', return; } - if ($scope.seedSource.id == walletService.externalSource.ledger.id || $scope.seedSource.id == walletService.externalSource.trezor.id || self.seedSourceId == walletService.externalSource.intelTEE.id) { + if ($scope.seedSource.id == walletService.externalSource.ledger.id || $scope.seedSource.id == walletService.externalSource.trezor.id || $scope.seedSource.id == walletService.externalSource.intelTEE.id) { var account = $scope.formData.account; if (!account || account < 1) { popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number')); return; } - if ($scope.seedSource.id == walletService.externalSource.trezor.id || self.seedSource.id == walletService.externalSource.intelTEE.id) + if ($scope.seedSource.id == walletService.externalSource.trezor.id || $scope.seedSource.id == walletService.externalSource.intelTEE.id) account = account - 1; opts.account = account; ongoingProcess.set('connecting' + $scope.seedSource.id, true); var src; - switch (self.seedSourceId) { + switch ($scope.seedSource.id) { case walletService.externalSource.ledger.id: - src = legder; + src = ledger; break; case walletService.externalSource.trezor.id: src = trezor; @@ -179,7 +179,7 @@ angular.module('copayApp.controllers').controller('createController', src = intelTEE; break; default: - this.error = gettextCatalog.getString('Invalid seed source id: ' + self.seedSourceId); + this.error = gettextCatalog.getString('Invalid seed source id: ' + $scope.seedSource.id); return; } diff --git a/src/js/controllers/preferencesExternal.js b/src/js/controllers/preferencesExternal.js index 9be05b92f..12ea10a7d 100644 --- a/src/js/controllers/preferencesExternal.js +++ b/src/js/controllers/preferencesExternal.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('preferencesExternalController', function($scope, lodash, profileService, walletService) { +angular.module('copayApp.controllers').controller('preferencesExternalController', function($scope, $stateParams, lodash, gettextCatalog, popupService, profileService, walletService) { var wallet = profileService.getWallet($stateParams.walletId); $scope.externalSource = lodash.find(walletService.externalSource, function(source) { diff --git a/src/js/controllers/preferencesInformation.js b/src/js/controllers/preferencesInformation.js index 21dc3db46..9362d883f 100644 --- a/src/js/controllers/preferencesInformation.js +++ b/src/js/controllers/preferencesInformation.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('preferencesInformation', - function($scope, $log, $ionicHistory, platformInfo, lodash, profileService, configService, $stateParams, $state) { + function($scope, $log, $ionicHistory, platformInfo, lodash, profileService, configService, $stateParams, $state, walletService) { var wallet = profileService.getWallet($stateParams.walletId); $scope.wallet = wallet; diff --git a/src/js/services/intelTEE.js b/src/js/services/intelTEE.js index ea75cb872..0b5724fe2 100644 --- a/src/js/services/intelTEE.js +++ b/src/js/services/intelTEE.js @@ -13,7 +13,7 @@ angular.module('copayApp.services') derivationStrategy: 'BIP44' }; - if (!root.description.isAvailable) { + if (!root.description.supported) { return root; } diff --git a/src/sass/views/tab-receive.scss b/src/sass/views/tab-receive.scss index 2228ed07a..483f988c3 100644 --- a/src/sass/views/tab-receive.scss +++ b/src/sass/views/tab-receive.scss @@ -162,6 +162,17 @@ transform: translate(100%, -40%); } } + .overlay { + position: absolute; + width: 220px; + height: 100%; + background-color: rgba(255,255,255,0.8); + button { + width: 100%; + top: 50%; + transform: translateY(-50%); + } + } @media(max-height: 700px) { padding: 10vh 0 4vh; } diff --git a/www/views/preferencesExternal.html b/www/views/preferencesExternal.html index 651a394e4..719a0d448 100644 --- a/www/views/preferencesExternal.html +++ b/www/views/preferencesExternal.html @@ -1,6 +1,6 @@ - {{exteralSource}} + {{externalSource}} diff --git a/www/views/preferencesInformation.html b/www/views/preferencesInformation.html index 060ae55a8..3e1bcd4ff 100644 --- a/www/views/preferencesInformation.html +++ b/www/views/preferencesInformation.html @@ -50,12 +50,6 @@ -
- Hardware Wallet - - {{wallet.getPrivKeyExternalSourceName()}} - -
diff --git a/www/views/tab-receive.html b/www/views/tab-receive.html index 0683ecbe2..644af8e0f 100644 --- a/www/views/tab-receive.html +++ b/www/views/tab-receive.html @@ -53,19 +53,11 @@
- - - -
- -
- -