PR comments.
This commit is contained in:
parent
1299917e94
commit
489c67511c
2 changed files with 47 additions and 54 deletions
|
@ -23,5 +23,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#key $params.datasourceId}
|
{#key $params.datasourceId}
|
||||||
|
{#if $datasources.selected}
|
||||||
<slot />
|
<slot />
|
||||||
|
{/if}
|
||||||
{/key}
|
{/key}
|
||||||
|
|
|
@ -12,18 +12,11 @@
|
||||||
import PromptQueryModal from "./_components/PromptQueryModal.svelte"
|
import PromptQueryModal from "./_components/PromptQueryModal.svelte"
|
||||||
import SettingsPanel from "./_components/panels/Settings.svelte"
|
import SettingsPanel from "./_components/panels/Settings.svelte"
|
||||||
import { helpers } from "@budibase/shared-core"
|
import { helpers } from "@budibase/shared-core"
|
||||||
import { goto } from "@roxi/routify"
|
|
||||||
|
|
||||||
let selectedPanel = null
|
let selectedPanel = null
|
||||||
let panelOptions = []
|
let panelOptions = []
|
||||||
|
|
||||||
// datasources.selected can return null temporarily on datasource deletion
|
|
||||||
$: datasource = $datasources.selected
|
$: datasource = $datasources.selected
|
||||||
$: {
|
|
||||||
if (!datasource) {
|
|
||||||
$goto("./datasource")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$: getOptions(datasource)
|
$: getOptions(datasource)
|
||||||
|
|
||||||
|
@ -58,7 +51,6 @@
|
||||||
|
|
||||||
<PromptQueryModal />
|
<PromptQueryModal />
|
||||||
|
|
||||||
{#if datasource}
|
|
||||||
<section>
|
<section>
|
||||||
<Layout noPadding>
|
<Layout noPadding>
|
||||||
<Layout gap="XS" noPadding>
|
<Layout gap="XS" noPadding>
|
||||||
|
@ -104,7 +96,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
</Layout>
|
</Layout>
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
section {
|
section {
|
||||||
|
|
Loading…
Reference in a new issue