From c4095327adec74a099e129403772e5e86f1359f8 Mon Sep 17 00:00:00 2001 From: dpschen Date: Wed, 8 Sep 2021 16:30:14 +0000 Subject: [PATCH] feat: make it possible to fake online state via dev env (#720) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/720 Co-authored-by: dpschen Co-committed-by: dpschen --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 921ff8649..26aac8210 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -59,7 +59,7 @@ export const store = new Vuex.Store({ state.errorMessage = error }, [ONLINE](state, online) { - state.online = online + state.online = import.meta.env.VITE_IS_ONLINE || online }, [CURRENT_LIST](state, currentList) {