paypro: show untrusted certs.

This commit is contained in:
Christopher Jeffrey 2014-07-31 16:38:08 -07:00 committed by Manuel Araoz
parent 91b2d9dd02
commit f697e2ffbb
1 changed files with 8 additions and 5 deletions

View File

@ -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;
} }