diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 8fb6fbb86..a2f36a433 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -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 diff --git a/frontend/src/views/Layout/DashboardNavbar.vue b/frontend/src/views/Layout/DashboardNavbar.vue index 8202e2aa0..e17afe27e 100755 --- a/frontend/src/views/Layout/DashboardNavbar.vue +++ b/frontend/src/views/Layout/DashboardNavbar.vue @@ -116,8 +116,8 @@ export default { this.activeNotifications = false }, logout() { - this.$router.push('/login') this.$store.dispatch('logout') + this.$router.push('/login') }, }, } diff --git a/frontend/src/views/Pages/Register.vue b/frontend/src/views/Pages/Register.vue index b3ab9ecf5..49e38e04b 100755 --- a/frontend/src/views/Pages/Register.vue +++ b/frontend/src/views/Pages/Register.vue @@ -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') } }, },