summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorZbigniew Kurzynski <zbigniew.kurzynski@intel.com>2019-07-18 14:03:47 +0200
committerGunnar Mills <gmills@us.ibm.com>2019-10-07 20:32:36 +0000
commitbb3714ef39f16f9329aefdf88d12aab1621fabea (patch)
tree2a058e1cd19c6e5bf597df5d6c64a0ffc8b174f3 /app
parent4b366b5aeb97b35ab3612bfe1dc7d93a1f8a6e79 (diff)
downloadphosphor-webui-bb3714ef39f16f9329aefdf88d12aab1621fabea.tar.gz
phosphor-webui-bb3714ef39f16f9329aefdf88d12aab1621fabea.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/access-control/controllers/certificate-controller.js6
1 files changed, 3 insertions, 3 deletions
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 @@ window.angular && (function(angular) {
};
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;
});
};
OpenPOWER on IntegriCloud