hide passphrase if pk is not encrypted
This commit is contained in:
parent
be30eb39c3
commit
19181a9462
2 changed files with 20 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue