Bugfix Load Locked Bar

Wenn dier Baransicht gespeert ist und man die Seite neu lädt, wird jetzt auch angezeigt, dass die Baransicht gespeert ist.
This commit is contained in:
Tim Gröger 2020-07-27 10:00:34 +02:00
parent cc39796243
commit 1cd823f44e
2 changed files with 6 additions and 0 deletions

View File

@ -361,6 +361,9 @@ const actions = {
} }
} }
}, },
setLockStatus({ commit }, status) {
commit('setLocked', status)
},
setFilter({ commit }, data) { setFilter({ commit }, data) {
commit('setFilter', data) commit('setFilter', data)
}, },

View File

@ -165,6 +165,9 @@ const actions = {
user.group = response.data.group user.group = response.data.group
localStorage.setItem('user', JSON.stringify(user)) localStorage.setItem('user', JSON.stringify(user))
commit('updateAccessToken', user) commit('updateAccessToken', user)
dispatch('barUsers/setLockStatus', response.data.lock_bar, {
root: true
})
} catch (e) { } catch (e) {
if (e.message == 'Network Error') { if (e.message == 'Network Error') {
dispatch('connectionError/addError', null, { root: true }) dispatch('connectionError/addError', null, { root: true })