From 5c977976d9450b50faeb33ba5bd1b5deaabcc3b5 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Thu, 30 Apr 2020 09:48:23 -0700 Subject: Add loading bar to Server power operations page Signed-off-by: Yoshie Muranaka Change-Id: I823279c6865fa1ecff2f0443d735477e03fbf417 --- src/store/modules/Control/BootSettingsStore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/store') diff --git a/src/store/modules/Control/BootSettingsStore.js b/src/store/modules/Control/BootSettingsStore.js index 8da586aa..655c79e5 100644 --- a/src/store/modules/Control/BootSettingsStore.js +++ b/src/store/modules/Control/BootSettingsStore.js @@ -30,8 +30,8 @@ const BootSettingsStore = { setTpmPolicy: (state, tpmEnabled) => (state.tpmEnabled = tpmEnabled) }, actions: { - getBootSettings({ commit }) { - api + async getBootSettings({ commit }) { + return await api .get('/redfish/v1/Systems/system/') .then(({ data: { Boot } }) => { commit( @@ -70,9 +70,9 @@ const BootSettingsStore = { return error; }); }, - getTpmPolicy({ commit }) { + async getTpmPolicy({ commit }) { // TODO: switch to Redfish when available - api + return await api .get('/xyz/openbmc_project/control/host0/TPMEnable') .then(({ data: { data: { TPMEnable } } }) => commit('setTpmPolicy', TPMEnable) -- cgit v1.2.3