diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-04-30 20:13:40 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-05-06 00:08:45 +0300 |
commit | e5be9ba5c7523a99394695bbb31a9059ca00ff0e (patch) | |
tree | 592319a4a5f4bc79fd7408f3db1d8e2e1d5e42c6 /src/store | |
parent | e9a59c75670461a80156554a4dfa04bab5eaf42c (diff) | |
download | webui-vue-e5be9ba5c7523a99394695bbb31a9059ca00ff0e.tar.xz |
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 <yoshiemuranaka@gmail.com>
Change-Id: I3a2b8ac8a639f464856472013be14878151e7289
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/AccessControl/SslCertificatesStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
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']) |