feat: make it possible to fake online state via dev env (#720)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/720
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen 2021-09-08 16:30:14 +00:00 committed by konrad
parent c9631c1e71
commit c4095327ad

View file

@ -59,7 +59,7 @@ export const store = new Vuex.Store({
state.errorMessage = error state.errorMessage = error
}, },
[ONLINE](state, online) { [ONLINE](state, online) {
state.online = online state.online = import.meta.env.VITE_IS_ONLINE || online
}, },
[CURRENT_LIST](state, currentList) { [CURRENT_LIST](state, currentList) {