forked from tsai/budibase
committed by
GitHub
9 changed files with 59 additions and 52 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,29 +1,30 @@ |
|||||
<script> |
<script> |
||||
import { backendUiStore } from "builderStore" |
import { backendUiStore } from "builderStore" |
||||
import { goto, leftover } from "@sveltech/routify" |
import { goto, leftover } 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 |
||||
// and this is the final url (i.e. no selectedTable) |
// and this is the final url (i.e. no selectedTable) |
||||
if ( |
if ( |
||||
!$leftover && |
!$leftover && |
||||
$backendUiStore.datasources.length > 0 && !$backendUiStore.selectedDatasourceId |
$backendUiStore.datasources.length > 0 && |
||||
) { |
!$backendUiStore.selectedDatasourceId |
||||
// this file routes as .../tables/index, so, go up one. |
) { |
||||
$goto(`../${$backendUiStore.datasources[0]._id}`) |
// this file routes as .../tables/index, so, go up one. |
||||
} |
$goto(`../${$backendUiStore.datasources[0]._id}`) |
||||
}) |
|
||||
</script> |
|
||||
|
|
||||
{#if $backendUiStore.tables.length === 0} |
|
||||
<i>Connect your first datasource to start building.</i> |
|
||||
{:else}<i>Select a datasource to edit</i>{/if} |
|
||||
|
|
||||
<style> |
|
||||
i { |
|
||||
font-size: var(--font-size-m); |
|
||||
color: var(--grey-5); |
|
||||
margin-top: 2px; |
|
||||
} |
} |
||||
</style> |
}) |
||||
|
</script> |
||||
|
|
||||
|
{#if $backendUiStore.tables.length === 0} |
||||
|
<i>Connect your first datasource to start building.</i> |
||||
|
{:else}<i>Select a datasource to edit</i>{/if} |
||||
|
|
||||
|
<style> |
||||
|
i { |
||||
|
font-size: var(--font-size-m); |
||||
|
color: var(--grey-5); |
||||
|
margin-top: 2px; |
||||
|
} |
||||
|
</style> |
||||
|
|||||
Loading…
Reference in new issue