summaryrefslogtreecommitdiff
path: root/src/store/modules/Health/FanStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/Health/FanStore.js')
-rw-r--r--src/store/modules/Health/FanStore.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/store/modules/Health/FanStore.js b/src/store/modules/Health/FanStore.js
index 2de388bf..b4a4189a 100644
--- a/src/store/modules/Health/FanStore.js
+++ b/src/store/modules/Health/FanStore.js
@@ -3,33 +3,33 @@ import api from '@/store/api';
const FanStore = {
namespaced: true,
state: {
- fans: []
+ fans: [],
},
getters: {
- fans: state => state.fans
+ fans: (state) => state.fans,
},
mutations: {
setFanInfo: (state, data) => {
- state.fans = data.map(fan => {
+ state.fans = data.map((fan) => {
const { MemberId, Status = {}, PartNumber, SerialNumber } = fan;
return {
id: MemberId,
health: Status.Health,
partNumber: PartNumber,
serialNumber: SerialNumber,
- statusState: Status.State
+ statusState: Status.State,
};
});
- }
+ },
},
actions: {
async getFanInfo({ commit }) {
return await api
.get('/redfish/v1/Chassis/chassis/Thermal')
.then(({ data: { Fans = [] } }) => commit('setFanInfo', Fans))
- .catch(error => console.log(error));
- }
- }
+ .catch((error) => console.log(error));
+ },
+ },
};
export default FanStore;