1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00
This commit is contained in:
Michael Drury 2021-07-25 12:09:50 +01:00
parent 48f797185c
commit a824746df9
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import * as API from "../api"
import { writable } from "svelte/store"
import { initialise } from "./initialise"
import { routeStore } from "./routes"
const createAuthStore = () => {
const store = writable(null)
@ -14,7 +15,6 @@ const createAuthStore = () => {
routeStore.actions.navigate("/")
}
// Fetches the user object if someone is logged in and has reloaded the page
const fetchUser = async () => {
const user = await API.fetchSelf()

View file

@ -1,5 +1,10 @@
import { get } from "svelte/store"
import { routeStore, builderStore, confirmationStore, authStore } from "../store"
import {
routeStore,
builderStore,
confirmationStore,
authStore,
} from "../store"
import { saveRow, deleteRow, executeQuery, triggerAutomation } from "../api"
import { ActionTypes } from "../constants"