summaryrefslogtreecommitdiff
path: root/src/store/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules')
-rw-r--r--src/store/modules/Control/ServerLedStore.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/modules/Control/ServerLedStore.js b/src/store/modules/Control/ServerLedStore.js
index c690d7cb..54faf591 100644
--- a/src/store/modules/Control/ServerLedStore.js
+++ b/src/store/modules/Control/ServerLedStore.js
@@ -14,16 +14,16 @@ const ServerLedStore = {
}
},
actions: {
- getIndicatorValue: ({ commit }) => {
- api
+ async getIndicatorValue({ commit }) {
+ await api
.get('/redfish/v1/Systems/system')
.then(response => {
commit('setIndicatorValue', response.data.IndicatorLED);
})
.catch(error => console.log(error));
},
- saveIndicatorLedValue: ({ commit }, payload) => {
- api
+ async saveIndicatorLedValue({ commit }, payload) {
+ await api
.patch('/redfish/v1/Systems/system', { IndicatorLED: payload })
.then(() => {
commit('setIndicatorValue', payload);