Browse Source

Linting.

gh-pages
Michael Drury 5 years ago
parent
commit
a824746df9
  1. 2
      packages/client/src/store/auth.js
  2. 7
      packages/client/src/utils/buttonActions.js

2
packages/client/src/store/auth.js

@ -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()

7
packages/client/src/utils/buttonActions.js

@ -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"

Loading…
Cancel
Save