adds default navigation to main page
This commit is contained in:
parent
5c73203d77
commit
d931b9018b
|
@ -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">
|
||||
|
|
|
@ -118,6 +118,8 @@
|
|||
okText="Delete Component"
|
||||
onOk={() => store.deleteComponent(componentToDelete)} />
|
||||
|
||||
<slot />
|
||||
|
||||
<style>
|
||||
button {
|
||||
cursor: pointer;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<script>
|
||||
import { goto } from "@sveltech/routify"
|
||||
$goto("../main")
|
||||
</script>
|
||||
|
||||
<!-- routify:options index=false -->
|
Loading…
Reference in New Issue