Merge pull request #4399 from JDonadio/ui/hardware-wallet

Add hardware wallet name on preferences
This commit is contained in:
Matias Alejo Garcia 2016-06-15 11:00:58 -03:00 committed by GitHub
commit ef3fca86bd
2 changed files with 6 additions and 3 deletions

View file

@ -38,9 +38,8 @@
</li>
<li ng-show="index.isPrivKeyExternal">
<div class="right text-gray">
<div class="right text-gray m10r">
{{externalSource}}
<!-- (Accont {{preferences.externalAccount}}) -->
</div>
<div translate>Hardware wallet</div>
</li>

View file

@ -15,10 +15,14 @@ angular.module('copayApp.controllers').controller('preferencesController',
});
$scope.init = function() {
$scope.externalSource = null;
fc = profileService.focusedClient;
if (fc) {
$scope.encryptEnabled = walletService.isEncrypted(fc);
$scope.externalSource = fc.getPrivKeyExternalSourceName() == 'ledger' ? "Ledger" : null;
if (fc.isPrivKeyExternal)
$scope.externalSource = fc.getPrivKeyExternalSourceName() == 'ledger' ? 'Ledger' : 'Trezor';
// TODO externalAccount
//this.externalIndex = fc.getExternalIndex();
}