budibase/packages/builder/src/pages/[application]/data/table/index.svelte

22 lines
484 B
Svelte
Raw Normal View History

<script>
2021-03-23 11:54:03 +01:00
import { tables } from 'builderStore/store/backend/'
import { goto } from "@sveltech/routify"
import { onMount } from "svelte"
onMount(async () => {
2021-03-23 11:54:03 +01:00
$tables.list.length > 0 && $goto(`../${$tables.list[0]._id}`)
})
</script>
2021-03-23 11:54:03 +01:00
{#if $tables.list.length === 0}
<i>Create your first table to start building</i>
2020-10-14 14:21:43 +02:00
{:else}<i>Select a table to edit</i>{/if}
<style>
i {
font-size: var(--font-size-m);
color: var(--grey-5);
margin-top: 2px;
}
</style>