tidy up imports

This commit is contained in:
Martin McKeaveney 2021-05-05 11:03:45 +01:00
parent 77830bec4f
commit 1b2fa1bbd6
1 changed files with 2 additions and 8 deletions

View File

@ -1,6 +1,4 @@
<script> <script>
import { hostingStore } from "builderStore"
import { HostingTypes } from "constants/backend"
import GoogleLogo from "./logos/Google.svelte" import GoogleLogo from "./logos/Google.svelte"
import { import {
Button, Button,
@ -10,12 +8,8 @@
notifications, notifications,
Layout, Layout,
Input, Input,
ModalContent,
Toggle,
Body, Body,
} from "@budibase/bbui" } from "@budibase/bbui"
import ThemeEditor from "components/settings/ThemeEditor.svelte"
import analytics from "analytics"
import { onMount } from "svelte" import { onMount } from "svelte"
import api from "builderStore/api" import api from "builderStore/api"
@ -37,9 +31,9 @@
const response = await api.post(`/api/admin/configs`, doc) const response = await api.post(`/api/admin/configs`, doc)
const json = await response.json() const json = await response.json()
if (response.status !== 200) throw new Error(json.message) if (response.status !== 200) throw new Error(json.message)
google._rev = json._rev google._rev = json._rev
google._id = json._id google._id = json._id
notifications.success(`Settings saved.`) notifications.success(`Settings saved.`)
} catch (err) { } catch (err) {
notifications.error(`Failed to update OAuth settings. ${err}`) notifications.error(`Failed to update OAuth settings. ${err}`)
@ -55,7 +49,7 @@
if (!googleDoc._id) { if (!googleDoc._id) {
google = { google = {
type: "google", type: ConfigTypes.Google,
config: {}, config: {},
} }
} else { } else {