summaryrefslogtreecommitdiff
path: root/src/store/modules/GlobalStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/GlobalStore.js')
-rw-r--r--src/store/modules/GlobalStore.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index 332c8017..8cf2e8eb 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -1,9 +1,9 @@
-import api from "../api";
+import api from '../api';
const GlobalStore = {
namespaced: true,
state: {
- hostName: "--",
+ hostName: '--',
hostStatus: null
},
getters: {
@@ -22,10 +22,10 @@ const GlobalStore = {
actions: {
getHostName({ commit }) {
api
- .get("/xyz/openbmc_project/network/config/attr/HostName")
+ .get('/xyz/openbmc_project/network/config/attr/HostName')
.then(response => {
const hostName = response.data.data;
- commit("setHostName", hostName);
+ commit('setHostName', hostName);
})
.catch(error => console.log(error));
}