From 1cd823f44e92cec4021c66137a6800e273738394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Mon, 27 Jul 2020 10:00:34 +0200 Subject: [PATCH] Bugfix Load Locked Bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wenn dier Baransicht gespeert ist und man die Seite neu lädt, wird jetzt auch angezeigt, dass die Baransicht gespeert ist. --- src/store/modules/barUsers.js | 3 +++ src/store/modules/login.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/store/modules/barUsers.js b/src/store/modules/barUsers.js index 883a70e..e6c1eda 100644 --- a/src/store/modules/barUsers.js +++ b/src/store/modules/barUsers.js @@ -361,6 +361,9 @@ const actions = { } } }, + setLockStatus({ commit }, status) { + commit('setLocked', status) + }, setFilter({ commit }, data) { commit('setFilter', data) }, diff --git a/src/store/modules/login.js b/src/store/modules/login.js index 4c32df0..910e03c 100644 --- a/src/store/modules/login.js +++ b/src/store/modules/login.js @@ -165,6 +165,9 @@ const actions = { user.group = response.data.group localStorage.setItem('user', JSON.stringify(user)) commit('updateAccessToken', user) + dispatch('barUsers/setLockStatus', response.data.lock_bar, { + root: true + }) } catch (e) { if (e.message == 'Network Error') { dispatch('connectionError/addError', null, { root: true })