2020-10-09 19:49:23 +02:00
|
|
|
<script>
|
2021-03-26 09:50:37 +01:00
|
|
|
import { tables } from 'stores/backend/'
|
2021-03-18 10:46:21 +01:00
|
|
|
import { goto } from "@sveltech/routify"
|
2020-10-09 19:49:23 +02:00
|
|
|
import { onMount } from "svelte"
|
|
|
|
|
|
|
|
onMount(async () => {
|
2021-03-23 11:54:03 +01:00
|
|
|
$tables.list.length > 0 && $goto(`../${$tables.list[0]._id}`)
|
2020-10-09 19:49:23 +02:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2021-03-23 11:54:03 +01:00
|
|
|
{#if $tables.list.length === 0}
|
2020-10-09 19:49:23 +02:00
|
|
|
<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}
|
2020-10-09 19:49:23 +02:00
|
|
|
|
|
|
|
<style>
|
|
|
|
i {
|
2020-10-26 13:18:34 +01:00
|
|
|
font-size: var(--font-size-m);
|
|
|
|
color: var(--grey-5);
|
2020-10-28 18:09:10 +01:00
|
|
|
margin-top: 2px;
|
2020-10-09 19:49:23 +02:00
|
|
|
}
|
|
|
|
</style>
|