fix flow of wizard
This commit is contained in:
parent
39192e4e7f
commit
468a7caa07
|
@ -1,13 +1,25 @@
|
||||||
<script>
|
<script>
|
||||||
|
import { goto } from "@roxi/routify"
|
||||||
|
import { onMount } from "svelte"
|
||||||
import CreateDatasourceModal from "components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte"
|
import CreateDatasourceModal from "components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte"
|
||||||
import { datasources } from "stores/backend"
|
import { datasources } from "stores/backend"
|
||||||
|
|
||||||
|
let modal
|
||||||
$: setupComplete =
|
$: setupComplete =
|
||||||
$datasources.list.find(x => (x._id = "bb_internal")).entities.length > 1 ||
|
$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>
|
</script>
|
||||||
|
|
||||||
{#if !setupComplete}
|
<CreateDatasourceModal bind:modal />
|
||||||
<CreateDatasourceModal />
|
|
||||||
{/if}
|
|
||||||
<!-- routify:options index=false -->
|
<!-- routify:options index=false -->
|
||||||
|
|
Loading…
Reference in New Issue