1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +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> </script>
{#key $params.datasourceId} {#key $params.datasourceId}
{#if $datasources.selected}
<slot /> <slot />
{/if}
{/key} {/key}

View file

@ -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,8 +51,7 @@
<PromptQueryModal /> <PromptQueryModal />
{#if datasource} <section>
<section>
<Layout noPadding> <Layout noPadding>
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
<header> <header>
@ -103,8 +95,7 @@
<Body>Something went wrong</Body> <Body>Something went wrong</Body>
{/if} {/if}
</Layout> </Layout>
</section> </section>
{/if}
<style> <style>
section { section {