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:
Marti Raudsepp 2017-09-26 01:34:07 +03:00 committed by kevgliss
parent 97d83890e0
commit 645641f4bd
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ angular.module('lemur')
};
$scope.loadPrivateKey = function (certificate) {
if (certificate.privateKey !== undefined) {
return;
}
CertificateService.loadPrivateKey(certificate).then(
function (response) {
if (response.key === null) {