adds default navigation to main page
This commit is contained in:
parent
4b4733daa8
commit
56ca7dd2b8
|
@ -1,4 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
|
import { params } from "@sveltech/routify"
|
||||||
import { store } from "builderStore"
|
import { store } from "builderStore"
|
||||||
import getIcon from "components/common/icon"
|
import getIcon from "components/common/icon"
|
||||||
import { CheckIcon } from "components/common/Icons"
|
import { CheckIcon } from "components/common/Icons"
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
store.setCurrentPage("main")
|
store.setCurrentPage($params.page ? $params.page : "main")
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
|
|
|
@ -118,6 +118,8 @@
|
||||||
okText="Delete Component"
|
okText="Delete Component"
|
||||||
onOk={() => store.deleteComponent(componentToDelete)} />
|
onOk={() => store.deleteComponent(componentToDelete)} />
|
||||||
|
|
||||||
|
<slot />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
button {
|
button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<script>
|
||||||
|
import { goto } from "@sveltech/routify"
|
||||||
|
$goto("../main")
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- routify:options index=false -->
|
Loading…
Reference in New Issue