1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

fix flow of wizard

This commit is contained in:
Peter Clement 2021-09-23 22:02:35 +01:00
parent 0de6b55438
commit f365cf731c

View file

@ -1,13 +1,25 @@
<script>
import { goto } from "@roxi/routify"
import { onMount } from "svelte"
import CreateDatasourceModal from "components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte"
import { datasources } from "stores/backend"
let modal
$: setupComplete =
$datasources.list.find(x => (x._id = "bb_internal")).entities.length > 1 ||
$datasources.list > 1
$datasources.list.length >= 1
$: console.log($datasources.list.length >= 1)
$: console.log(
$datasources.list.find(x => (x._id = "bb_internal")).entities.length > 1
)
onMount(() => {
if (!setupComplete) {
modal.show()
} else {
$goto("./table")
}
})
</script>
{#if !setupComplete}
<CreateDatasourceModal />
{/if}
<CreateDatasourceModal bind:modal />
<!-- routify:options index=false -->