mirror of https://github.com/BTCPrivate/copay.git
paypro: show untrusted certs.
This commit is contained in:
parent
91b2d9dd02
commit
f697e2ffbb
|
@ -47,15 +47,17 @@ angular.module('copayApp.directives')
|
||||||
amount.val(total);
|
amount.val(total);
|
||||||
amount.attr('disabled', true);
|
amount.attr('disabled', true);
|
||||||
|
|
||||||
var sendto = angular.element(
|
var sendto = angular.element(document
|
||||||
document.querySelector('div.send-note > p[ng-class]:first-of-type'));
|
.querySelector('div.send-note > p[ng-class]:first-of-type'));
|
||||||
sendto.html(sendto.html() + '<br><b>Server:</b> ' + memo);
|
sendto.html(sendto.html() + '<br><b>Server:</b> ' + memo);
|
||||||
|
|
||||||
var tamount = angular.element(
|
var tamount = angular.element(document
|
||||||
document.querySelector('div.send-note > p[ng-class]:nth-of-type(2)'));
|
.querySelector('div.send-note > p[ng-class]:nth-of-type(2)'));
|
||||||
|
var ca = merchantData.pr.ca
|
||||||
|
|| '<span style="color:red;">Untrusted</span>';
|
||||||
tamount.attr('class',
|
tamount.attr('class',
|
||||||
tamount.attr('class').replace(' hidden', ''))
|
tamount.attr('class').replace(' hidden', ''))
|
||||||
tamount.text(total + ' (CA: ' + merchantData.pr.ca
|
tamount.html(total + ' (CA: ' + ca
|
||||||
+ '. Expires: '
|
+ '. Expires: '
|
||||||
+ expires.toISOString()
|
+ expires.toISOString()
|
||||||
+ '): ' + memo);
|
+ '): ' + memo);
|
||||||
|
@ -72,6 +74,7 @@ angular.module('copayApp.directives')
|
||||||
});
|
});
|
||||||
|
|
||||||
ctrl.$setValidity('validAddress', true);
|
ctrl.$setValidity('validAddress', true);
|
||||||
|
|
||||||
return 'Merchant: '+ uri.merchant;
|
return 'Merchant: '+ uri.merchant;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue