From 67ea9738458274e39b9faa46db718ebfdab32d65 Mon Sep 17 00:00:00 2001 From: elweyn Date: Tue, 12 Oct 2021 11:40:37 +0200 Subject: [PATCH] Adding a hasEloage flag to the store. --- frontend/src/store/store.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 03e1915ca..cb2c7b42a 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -38,6 +38,9 @@ export const mutations = { coinanimation: (state, coinanimation) => { state.coinanimation = coinanimation }, + hasElopage: (state, hasElopage) => { + state.hasElopage = hasElopage + }, } export const actions = { @@ -50,6 +53,7 @@ export const actions = { commit('description', data.description) commit('coinanimation', data.coinanimation) commit('newsletterState', data.klickTipp.newsletterState) + commit('hasElopage', data.hasElopage) }, logout: ({ commit, state }) => { commit('token', null) @@ -60,6 +64,7 @@ export const actions = { commit('description', '') commit('coinanimation', true) commit('newsletterState', null) + commit('hasElopage', false) localStorage.clear() }, } @@ -81,6 +86,7 @@ export const store = new Vuex.Store({ coinanimation: true, newsletterState: null, community: null, + hasElopage: false, }, getters: {}, // Syncronous mutation of the state