mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove sizeDE, sizeGB from store. commit logout to store before redirect
This commit is contained in:
parent
c3c4b52807
commit
dd9b10a4cb
@ -16,8 +16,6 @@ export const store = new Vuex.Store({
|
||||
session_id: null,
|
||||
email: '',
|
||||
language: 'en',
|
||||
sizeDE: 'normal',
|
||||
sizeGB: 'big',
|
||||
user: {
|
||||
name: '',
|
||||
balance: 0,
|
||||
@ -37,13 +35,6 @@ export const store = new Vuex.Store({
|
||||
mutations: {
|
||||
language: (state, language) => {
|
||||
state.language = language
|
||||
if (state.language == 'de') {
|
||||
state.sizeDE = 'big'
|
||||
state.sizeGB = 'normal'
|
||||
} else {
|
||||
state.sizeDE = 'normal'
|
||||
state.sizeGB = 'big'
|
||||
}
|
||||
},
|
||||
email: (state, email) => {
|
||||
state.email = email
|
||||
|
||||
@ -116,8 +116,8 @@ export default {
|
||||
this.activeNotifications = false
|
||||
},
|
||||
logout() {
|
||||
this.$router.push('/login')
|
||||
this.$store.dispatch('logout')
|
||||
this.$router.push('/login')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -188,8 +188,8 @@ export default {
|
||||
this.$router.push('/thx')
|
||||
} else {
|
||||
// todo: Display a proper error message!
|
||||
this.$router.push('/login')
|
||||
this.$store.dispatch('logout')
|
||||
this.$router.push('/login')
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user