adds default navigation to main page

This commit is contained in:
kevmodrome 2020-04-28 14:21:40 +02:00
parent 5c73203d77
commit d931b9018b
3 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<script>
import { params } from "@sveltech/routify"
import { store } from "builderStore"
import getIcon from "components/common/icon"
import { CheckIcon } from "components/common/Icons"
@ -19,7 +20,7 @@
},
]
store.setCurrentPage("main")
store.setCurrentPage($params.page ? $params.page : "main")
</script>
<div class="root">

View File

@ -118,6 +118,8 @@
okText="Delete Component"
onOk={() => store.deleteComponent(componentToDelete)} />
<slot />
<style>
button {
cursor: pointer;

View File

@ -0,0 +1,6 @@
<script>
import { goto } from "@sveltech/routify"
$goto("../main")
</script>
<!-- routify:options index=false -->