From e5be9ba5c7523a99394695bbb31a9059ca00ff0e Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Thu, 30 Apr 2020 10:13:40 -0700 Subject: Add loading bar to SSL certificates page - Return new Date() instead of null when calculating expiring time. Expired certificates banner is sometimes visible if the certificates are returned before the bmc time Signed-off-by: Yoshie Muranaka Change-Id: I3a2b8ac8a639f464856472013be14878151e7289 --- src/store/modules/AccessControl/SslCertificatesStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/store') diff --git a/src/store/modules/AccessControl/SslCertificatesStore.js b/src/store/modules/AccessControl/SslCertificatesStore.js index ef4afdbb..71304b5a 100644 --- a/src/store/modules/AccessControl/SslCertificatesStore.js +++ b/src/store/modules/AccessControl/SslCertificatesStore.js @@ -48,8 +48,8 @@ const SslCertificatesStore = { } }, actions: { - getCertificates({ commit }) { - api + async getCertificates({ commit }) { + return await api .get('/redfish/v1/CertificateService/CertificateLocations') .then(({ data: { Links: { Certificates } } }) => Certificates.map(certificate => certificate['@odata.id']) -- cgit v1.2.3