summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-04-27 20:12:15 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-05-01 16:34:53 +0300
commitf7aa7f9c8abe8480edfdf758ec25b26032e759a2 (patch)
tree64091e4f3006280f2a1b911c5e18023008127da5 /src/store
parent881ddc4111d0025123ce3898044d373a2eb329cf (diff)
downloadwebui-vue-f7aa7f9c8abe8480edfdf758ec25b26032e759a2.tar.xz
Remove hostname D-Bus request
Hostname is available in NetworkSettingsStore using redfish api. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I26c26281ca8d9003d2daaed13d6bbd4db6ed700c
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')