From 11b8df2251fd1f76283be1ac06b89b89b4f01f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 3 Mar 2020 22:50:47 +0100 Subject: [PATCH] finished ##210 --- src/components/user/Config.vue | 42 ++++++++++++++++++++++++++-------- src/store/modules/user.js | 5 +++- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/src/components/user/Config.vue b/src/components/user/Config.vue index 160542c..a5c9dbf 100644 --- a/src/components/user/Config.vue +++ b/src/components/user/Config.vue @@ -116,18 +116,26 @@ append-icon > + + + + + + @@ -135,14 +143,19 @@ Save - {{error}} + {{ error }} diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 4036091..4d1e4d2 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -318,7 +318,7 @@ const actions = { }, async getStatus({commit, rootState, dispatch }) { try { - const response = await axios.post(url.user.getAllStatus, { + const response = await axios.get(url.user.getAllStatus, { headers: { Token: rootState.login.user.accessToken } }) commit('setStatus', response.data) @@ -355,6 +355,9 @@ const getters = { }, messages: state => { return state.message + }, + status: state => { + return state.status } }