Avoid redundant key_view log entries (#937)
Don't re-request private key when it's already loaded in frontend.
This commit is contained in:
parent
97d83890e0
commit
645641f4bd
|
@ -55,6 +55,10 @@ angular.module('lemur')
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.loadPrivateKey = function (certificate) {
|
$scope.loadPrivateKey = function (certificate) {
|
||||||
|
if (certificate.privateKey !== undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CertificateService.loadPrivateKey(certificate).then(
|
CertificateService.loadPrivateKey(certificate).then(
|
||||||
function (response) {
|
function (response) {
|
||||||
if (response.key === null) {
|
if (response.key === null) {
|
||||||
|
|
Loading…
Reference in New Issue