PR comments.
This commit is contained in:
parent
1299917e94
commit
489c67511c
|
@ -23,5 +23,7 @@
|
|||
</script>
|
||||
|
||||
{#key $params.datasourceId}
|
||||
{#if $datasources.selected}
|
||||
<slot />
|
||||
{/if}
|
||||
{/key}
|
||||
|
|
|
@ -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,7 +51,6 @@
|
|||
|
||||
<PromptQueryModal />
|
||||
|
||||
{#if datasource}
|
||||
<section>
|
||||
<Layout noPadding>
|
||||
<Layout gap="XS" noPadding>
|
||||
|
@ -104,7 +96,6 @@
|
|||
{/if}
|
||||
</Layout>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
section {
|
||||
|
|
Loading…
Reference in New Issue