summaryrefslogtreecommitdiff
path: root/src/store/modules/Health/SystemStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/Health/SystemStore.js')
-rw-r--r--src/store/modules/Health/SystemStore.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/store/modules/Health/SystemStore.js b/src/store/modules/Health/SystemStore.js
index 828b78bd..30ae66be 100644
--- a/src/store/modules/Health/SystemStore.js
+++ b/src/store/modules/Health/SystemStore.js
@@ -3,10 +3,10 @@ import api from '@/store/api';
const SystemStore = {
namespaced: true,
state: {
- systems: []
+ systems: [],
},
getters: {
- systems: state => state.systems
+ systems: (state) => state.systems,
},
mutations: {
setSystemInfo: (state, data) => {
@@ -26,16 +26,16 @@ const SystemStore = {
system.statusState = data.Status.State;
system.systemType = data.SystemType;
state.systems = [system];
- }
+ },
},
actions: {
async getSystem({ commit }) {
return await api
.get('/redfish/v1/Systems/system')
.then(({ data }) => commit('setSystemInfo', data))
- .catch(error => console.log(error));
- }
- }
+ .catch((error) => console.log(error));
+ },
+ },
};
export default SystemStore;