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,
|
session_id: null,
|
||||||
email: '',
|
email: '',
|
||||||
language: 'en',
|
language: 'en',
|
||||||
sizeDE: 'normal',
|
|
||||||
sizeGB: 'big',
|
|
||||||
user: {
|
user: {
|
||||||
name: '',
|
name: '',
|
||||||
balance: 0,
|
balance: 0,
|
||||||
@ -37,13 +35,6 @@ export const store = new Vuex.Store({
|
|||||||
mutations: {
|
mutations: {
|
||||||
language: (state, language) => {
|
language: (state, language) => {
|
||||||
state.language = language
|
state.language = language
|
||||||
if (state.language == 'de') {
|
|
||||||
state.sizeDE = 'big'
|
|
||||||
state.sizeGB = 'normal'
|
|
||||||
} else {
|
|
||||||
state.sizeDE = 'normal'
|
|
||||||
state.sizeGB = 'big'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
email: (state, email) => {
|
email: (state, email) => {
|
||||||
state.email = email
|
state.email = email
|
||||||
|
|||||||
@ -116,8 +116,8 @@ export default {
|
|||||||
this.activeNotifications = false
|
this.activeNotifications = false
|
||||||
},
|
},
|
||||||
logout() {
|
logout() {
|
||||||
this.$router.push('/login')
|
|
||||||
this.$store.dispatch('logout')
|
this.$store.dispatch('logout')
|
||||||
|
this.$router.push('/login')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -188,8 +188,8 @@ export default {
|
|||||||
this.$router.push('/thx')
|
this.$router.push('/thx')
|
||||||
} else {
|
} else {
|
||||||
// todo: Display a proper error message!
|
// todo: Display a proper error message!
|
||||||
this.$router.push('/login')
|
|
||||||
this.$store.dispatch('logout')
|
this.$store.dispatch('logout')
|
||||||
|
this.$router.push('/login')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user