hide passphrase if pk is not encrypted

This commit is contained in:
Javier 2015-10-07 15:32:52 -03:00
commit 19181a9462
2 changed files with 20 additions and 12 deletions

View file

@ -5,7 +5,13 @@ angular.module('copayApp.controllers').controller('paperWalletController',
var rawTx;
self.onQrCodeScanned = function(data) {
$scope.privateKey = data;
$scope.inputData = data;
self.onData(data);
}
self.onData = function(data) {
self.scannedKey = data;
self.isPkEncrypted = (data.charAt(0) == '6');
}
self.createTx = function(privateKey, passphrase) {