Bug fixes after rebase.

Please enter the commit message for your changes. Lines starting
This commit is contained in:
Gabrielbazan7 2017-03-17 18:23:50 -04:00 committed by Andy Phillipson
commit 8c00fe27aa
8 changed files with 22 additions and 25 deletions

View file

@ -154,23 +154,23 @@ angular.module('copayApp.controllers').controller('createController',
return; 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; var account = $scope.formData.account;
if (!account || account < 1) { if (!account || account < 1) {
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number')); popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number'));
return; 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; account = account - 1;
opts.account = account; opts.account = account;
ongoingProcess.set('connecting' + $scope.seedSource.id, true); ongoingProcess.set('connecting' + $scope.seedSource.id, true);
var src; var src;
switch (self.seedSourceId) { switch ($scope.seedSource.id) {
case walletService.externalSource.ledger.id: case walletService.externalSource.ledger.id:
src = legder; src = ledger;
break; break;
case walletService.externalSource.trezor.id: case walletService.externalSource.trezor.id:
src = trezor; src = trezor;
@ -179,7 +179,7 @@ angular.module('copayApp.controllers').controller('createController',
src = intelTEE; src = intelTEE;
break; break;
default: default:
this.error = gettextCatalog.getString('Invalid seed source id: ' + self.seedSourceId); this.error = gettextCatalog.getString('Invalid seed source id: ' + $scope.seedSource.id);
return; return;
} }

View file

@ -1,6 +1,6 @@
'use strict'; '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); var wallet = profileService.getWallet($stateParams.walletId);
$scope.externalSource = lodash.find(walletService.externalSource, function(source) { $scope.externalSource = lodash.find(walletService.externalSource, function(source) {

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('preferencesInformation', 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); var wallet = profileService.getWallet($stateParams.walletId);
$scope.wallet = wallet; $scope.wallet = wallet;

View file

@ -13,7 +13,7 @@ angular.module('copayApp.services')
derivationStrategy: 'BIP44' derivationStrategy: 'BIP44'
}; };
if (!root.description.isAvailable) { if (!root.description.supported) {
return root; return root;
} }

View file

@ -162,6 +162,17 @@
transform: translate(100%, -40%); 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) { @media(max-height: 700px) {
padding: 10vh 0 4vh; padding: 10vh 0 4vh;
} }

View file

@ -1,6 +1,6 @@
<ion-view> <ion-view>
<ion-nav-bar class="bar-royal"> <ion-nav-bar class="bar-royal">
<ion-nav-title>{{exteralSource}}</ion-nav-title> <ion-nav-title>{{externalSource}}</ion-nav-title>
<ion-nav-back-button> <ion-nav-back-button>
</ion-nav-back-button> </ion-nav-back-button>
</ion-nav-bar> </ion-nav-bar>

View file

@ -50,12 +50,6 @@
</span> </span>
<i class="icon bp-arrow-right"></i> <i class="icon bp-arrow-right"></i>
</a> </a>
<div class="item" ng-show="wallet.isPrivKeyExternal()">
<span translate>Hardware Wallet</span>
<span class="item-note">
{{wallet.getPrivKeyExternalSourceName()}}
</span>
</div>
<div class="item" ng-show="!wallet.isPrivKeyExternal() && !wallet.canSign()"> <div class="item" ng-show="!wallet.isPrivKeyExternal() && !wallet.canSign()">
<span translate></span> <span translate></span>
<span class="item-note"> <span class="item-note">

View file

@ -53,19 +53,11 @@
</div> </div>
<div class="row qr"> <div class="row qr">
<div class="text-center col center-block" copy-to-clipboard="addr" ng-repeat="wallet in wallets track by $index" ng-class="walletPosition($index)"> <div class="text-center col center-block" copy-to-clipboard="addr" ng-repeat="wallet in wallets track by $index" ng-class="walletPosition($index)">
<span class="overlay" ng-show="shouldShowReceiveAddressFromHardware()">
<button class="button button-standard button-primary" ng-click="showReceiveAddressFromHardware()">
<span style="position: absolute; width: 220px" ng-show="shouldShowReceiveAddressFromHardware()">
<div style="width: 100%; height: 226px; background-color: rgba(255,255,255,0.8);">
<button class="button light-gray small round m10b"
style="background-color: white; border-color: black; color: black; top: 50%; transform: translateY(-50%);"
ng-click="showReceiveAddressFromHardware()">
<span translate>Show address</span> <span translate>Show address</span>
</button> </button>
</div>
</span> </span>
<qrcode ng-if="walletAddrs[wallet.id]" size="220" data="bitcoin:{{walletAddrs[wallet.id]}}" color="#334"></qrcode> <qrcode ng-if="walletAddrs[wallet.id]" size="220" data="bitcoin:{{walletAddrs[wallet.id]}}" color="#334"></qrcode>
</div> </div>
</div> </div>