forked from tsai/budibase
9 changed files with 50 additions and 45 deletions
@ -1,6 +1,5 @@ |
|||||
<script> |
<script> |
||||
import AutomationBuilder from "components/automation/AutomationBuilder/AutomationBuilder.svelte" |
import AutomationBuilder from "components/automation/AutomationBuilder/AutomationBuilder.svelte" |
||||
</script> |
</script> |
||||
|
|
||||
<AutomationBuilder /> |
<AutomationBuilder /> |
||||
|
|
||||
@ -1,22 +1,23 @@ |
|||||
<script> |
<script> |
||||
import { backendUiStore } from "builderStore" |
import { backendUiStore } from "builderStore" |
||||
import { goto } from "@sveltech/routify" |
import { goto } from "@sveltech/routify" |
||||
import { onMount } from "svelte" |
import { onMount } from "svelte" |
||||
|
|
||||
onMount(async () => { |
onMount(async () => { |
||||
// navigate to first table in list, if not already selected |
// navigate to first table in list, if not already selected |
||||
$backendUiStore.datasources.length > 0 && $goto(`../${$backendUiStore.datasources[0]._id}`) |
$backendUiStore.datasources.length > 0 && |
||||
}) |
$goto(`../${$backendUiStore.datasources[0]._id}`) |
||||
</script> |
}) |
||||
|
</script> |
||||
{#if $backendUiStore.tables.length === 0} |
|
||||
<i>Connect your first datasource to start building.</i> |
{#if $backendUiStore.tables.length === 0} |
||||
{:else}<i>Select a datasource to edit</i>{/if} |
<i>Connect your first datasource to start building.</i> |
||||
|
{:else}<i>Select a datasource to edit</i>{/if} |
||||
<style> |
|
||||
i { |
<style> |
||||
font-size: var(--font-size-m); |
i { |
||||
color: var(--grey-5); |
font-size: var(--font-size-m); |
||||
margin-top: 2px; |
color: var(--grey-5); |
||||
} |
margin-top: 2px; |
||||
</style> |
} |
||||
|
</style> |
||||
|
|||||
Loading…
Reference in new issue