1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

adds default navigation to main page

This commit is contained in:
kevmodrome 2020-04-28 14:21:40 +02:00
parent 4b4733daa8
commit 56ca7dd2b8
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 -->