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> <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">

View File

@ -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;

View File

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