1
0
Fork 0
mirror of synced 2024-07-11 01:06:04 +12:00

PR comments.

This commit is contained in:
mike12345567 2023-10-18 10:04:26 +01:00
parent 1299917e94
commit 489c67511c
2 changed files with 47 additions and 54 deletions

View file

@ -23,5 +23,7 @@
</script>
{#key $params.datasourceId}
{#if $datasources.selected}
<slot />
{/if}
{/key}

View file

@ -12,18 +12,11 @@
import PromptQueryModal from "./_components/PromptQueryModal.svelte"
import SettingsPanel from "./_components/panels/Settings.svelte"
import { helpers } from "@budibase/shared-core"
import { goto } from "@roxi/routify"
let selectedPanel = null
let panelOptions = []
// datasources.selected can return null temporarily on datasource deletion
$: datasource = $datasources.selected
$: {
if (!datasource) {
$goto("./datasource")
}
}
$: getOptions(datasource)
@ -58,8 +51,7 @@
<PromptQueryModal />
{#if datasource}
<section>
<section>
<Layout noPadding>
<Layout gap="XS" noPadding>
<header>
@ -103,8 +95,7 @@
<Body>Something went wrong</Body>
{/if}
</Layout>
</section>
{/if}
</section>
<style>
section {