summaryrefslogtreecommitdiffstats
path: root/app/access-control/controllers
diff options
context:
space:
mode:
authorZbigniew Kurzynski <zbigniew.kurzynski@intel.com>2019-10-23 14:05:58 +0200
committerGunnar Mills <gmills@us.ibm.com>2019-11-06 14:10:33 +0000
commitf70f42553615972163b36c9b4d77be07e4399122 (patch)
tree92344b51c9fd6c487b46320408ea0e4c0f746920 /app/access-control/controllers
parentf6387628d22b525c20a16e4b928ceece0e03c92b (diff)
downloadphosphor-webui-f70f42553615972163b36c9b4d77be07e4399122.tar.gz
phosphor-webui-f70f42553615972163b36c9b4d77be07e4399122.zip
Certificate delete API – frontend
With introducing option to add multiple certificates there is a need to give user a possibility to remove selected certificates, for example when they expire. This commit adds implementation of DELETE function to GUI. A new icon will appear in action section on certificate table. The delete icon will be enabled only for TrustStore certificates and disabled for others which does not have support for delete option. When user clicks on the delete icon then ‘user prompt’ is displayed and after confirmation, proper redfish action is used to delete the certificate. Middlewere implementation is here: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/25281 Backend implementation is here: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-certificate-manager/+/25268 Tested on Chrome and Mozilla. New icon appears in action section. The delete option is available only for TrustStore certificates. User is able to delete selected certificate. Depends-On: I9781c5c79288ec5d080e80e42c63a55e471ddb77 Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: I68c5f54767d6982ae3cb00830b3a1b4f5e237bea
Diffstat (limited to 'app/access-control/controllers')
-rw-r--r--app/access-control/controllers/certificate-controller.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/access-control/controllers/certificate-controller.html b/app/access-control/controllers/certificate-controller.html
index d2db65c..2166676 100644
--- a/app/access-control/controllers/certificate-controller.html
+++ b/app/access-control/controllers/certificate-controller.html
@@ -40,7 +40,7 @@
<!-- TODO: Replace table with resusable table component -->
<div class="section-content certificate__table">
<div class="table__row-header">
- <div class="row column">
+ <div class="row">
<div class="certificate__type-header">
Certificate
</div>
@@ -57,6 +57,9 @@
<div class="certificate__date-header">
Valid until
</div>
+ <div class="certificate__actions-header">
+ Actions
+ </div>
</div>
</div>
<div ng-if="certificates.length < 1" class="empty__logs">
OpenPOWER on IntegriCloud