Enabling multiple TrustStore Certificates uploading.
The TrustStore should be used to hold TLS certificates, but current
TrustStore implementation does not support multiple certificates.
This GUI change should allow users to add more than one certificate
to TrustStore managed by OpenBMC.
Tested: GUI tests were done on Chromium v74.0.3729 browser.
It is possible to add multiple TrustStore Certificate
and only single LDAP and HTTPs certificates.
Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
Change-Id: Ia7c8400d039e980ad3d1c2cfd25aa7e29699d683
Depends-On: Icd33723c1fc2580679aaaf54b3e99dfb09342402
diff --git a/app/access-control/controllers/certificate-controller.js b/app/access-control/controllers/certificate-controller.js
index 2e6a92c..8c2992a 100644
--- a/app/access-control/controllers/certificate-controller.js
+++ b/app/access-control/controllers/certificate-controller.js
@@ -216,11 +216,11 @@
};
var updateAvailableTypes = function(certificate) {
- // TODO: at this time only one of each type of certificate is allowed.
- // When this changes, this will need to be updated.
- // Removes certificate type from available types to be added.
$scope.availableCertificateTypes =
$scope.availableCertificateTypes.filter(function(type) {
+ if (type.Description == 'TrustStore Certificate') {
+ return true;
+ }
return type.Description !== certificate.Description;
});
};