Add loading bar to Overview page
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I47ef77dda6b348c854e875aa458acfa44e287c49
diff --git a/src/store/modules/Configuration/FirmwareStore.js b/src/store/modules/Configuration/FirmwareStore.js
index b76748f..cae74eb 100644
--- a/src/store/modules/Configuration/FirmwareStore.js
+++ b/src/store/modules/Configuration/FirmwareStore.js
@@ -17,8 +17,8 @@
(state.hostFirmwareVersion = hostFirmwareVersion)
},
actions: {
- getBmcFirmware({ commit }) {
- api
+ async getBmcFirmware({ commit }) {
+ return await api
.get('/redfish/v1/Managers/bmc')
.then(response => {
const bmcFirmwareVersion = response.data.FirmwareVersion;
@@ -28,8 +28,8 @@
console.log(error);
});
},
- getHostFirmware({ commit }) {
- api
+ async getHostFirmware({ commit }) {
+ return await api
.get('/redfish/v1/Systems/system')
.then(response => {
const hostFirmwareVersion = response.data.BiosVersion;