diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-05-01 22:26:00 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-05-05 20:28:16 +0300 |
commit | 598bf7e96704f54400ec1730255168dd4d274218 (patch) | |
tree | 772eed2aee074f479a06c85c860deabcfc20908d /src/store/modules/Configuration/FirmwareStore.js | |
parent | a9ac43b9b25172cf0bfe800acdfc985024cad597 (diff) | |
download | webui-vue-598bf7e96704f54400ec1730255168dd4d274218.tar.xz |
Add loading bar to Overview page
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I47ef77dda6b348c854e875aa458acfa44e287c49
Diffstat (limited to 'src/store/modules/Configuration/FirmwareStore.js')
-rw-r--r-- | src/store/modules/Configuration/FirmwareStore.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/modules/Configuration/FirmwareStore.js b/src/store/modules/Configuration/FirmwareStore.js index b76748f3..cae74ebc 100644 --- a/src/store/modules/Configuration/FirmwareStore.js +++ b/src/store/modules/Configuration/FirmwareStore.js @@ -17,8 +17,8 @@ const FirmwareStore = { (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 @@ const FirmwareStore = { console.log(error); }); }, - getHostFirmware({ commit }) { - api + async getHostFirmware({ commit }) { + return await api .get('/redfish/v1/Systems/system') .then(response => { const hostFirmwareVersion = response.data.BiosVersion; |