summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/GlobalStore.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index 83b5432e..c9e92a76 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -27,31 +27,19 @@ const hostStateMapper = hostState => {
const GlobalStore = {
namespaced: true,
state: {
- hostName: '--',
bmcTime: null,
hostStatus: 'unreachable'
},
getters: {
- hostName: state => state.hostName,
hostStatus: state => state.hostStatus,
bmcTime: state => state.bmcTime
},
mutations: {
- setHostName: (state, hostName) => (state.hostName = hostName),
setBmcTime: (state, bmcTime) => (state.bmcTime = bmcTime),
setHostStatus: (state, hostState) =>
(state.hostStatus = hostStateMapper(hostState))
},
actions: {
- getHostName({ commit }) {
- api
- .get('/xyz/openbmc_project/network/config/attr/HostName')
- .then(response => {
- const hostName = response.data.data;
- commit('setHostName', hostName);
- })
- .catch(error => console.log(error));
- },
getBmcTime({ commit }) {
api
.get('/redfish/v1/Managers/bmc')