From 24a154422d8d0112e64eef5da70bf92cf0c44abf Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Tue, 1 Feb 2022 23:09:41 +0100 Subject: [PATCH] chore: remove vikunjaReady from store --- src/components/misc/ready.vue | 4 ++-- src/store/index.js | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/misc/ready.vue b/src/components/misc/ready.vue index f94a413e8..8fd3f4fd3 100644 --- a/src/components/misc/ready.vue +++ b/src/components/misc/ready.vue @@ -60,7 +60,7 @@ const route = useRoute() const store = useStore() -const ready = computed(() => store.state.vikunjaReady) +const ready = ref(false) const online = useOnline() const error = ref('') @@ -73,7 +73,7 @@ async function load() { if (typeof redirectTo !== 'undefined') { await router.push(redirectTo) } - store.commit('vikunjaReady', true) + ready.value = true } catch (e: any) { error.value = e } diff --git a/src/store/index.js b/src/store/index.js index 2b4663bff..f0d250c13 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -43,7 +43,6 @@ export const store = createStore({ menuActive: true, keyboardShortcutsActive: false, quickActionsActive: false, - vikunjaReady: false, }, mutations: { [LOADING](state, loading) { @@ -79,9 +78,6 @@ export const store = createStore({ [BACKGROUND](state, background) { state.background = background }, - vikunjaReady(state, ready) { - state.vikunjaReady = ready - }, }, actions: { async [CURRENT_LIST]({state, commit}, currentList) {