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>
|
||||||
|
|
||||||
<li ng-show="index.isPrivKeyExternal">
|
<li ng-show="index.isPrivKeyExternal">
|
||||||
<div class="right text-gray">
|
<div class="right text-gray m10r">
|
||||||
{{externalSource}}
|
{{externalSource}}
|
||||||
<!-- (Accont {{preferences.externalAccount}}) -->
|
|
||||||
</div>
|
</div>
|
||||||
<div translate>Hardware wallet</div>
|
<div translate>Hardware wallet</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,14 @@ angular.module('copayApp.controllers').controller('preferencesController',
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
|
$scope.externalSource = null;
|
||||||
|
|
||||||
fc = profileService.focusedClient;
|
fc = profileService.focusedClient;
|
||||||
if (fc) {
|
if (fc) {
|
||||||
$scope.encryptEnabled = walletService.isEncrypted(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
|
// TODO externalAccount
|
||||||
//this.externalIndex = fc.getExternalIndex();
|
//this.externalIndex = fc.getExternalIndex();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue