add hardware wallet name on preferences

This commit is contained in:
Javier 2016-06-15 10:12:36 -03:00
commit a08f68a591
2 changed files with 6 additions and 3 deletions

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();
}