Merge pull request #4399 from JDonadio/ui/hardware-wallet
Add hardware wallet name on preferences
This commit is contained in:
commit
ef3fca86bd
2 changed files with 6 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue