1
0
Fork 0
mirror of synced 2024-09-19 18:59:06 +12:00

Update view components button in screen section to function

This commit is contained in:
Andrew Kingston 2022-04-26 14:26:55 +01:00
parent 9c9de94b8c
commit 380670b27e
2 changed files with 22 additions and 15 deletions

View file

@ -21,17 +21,23 @@
) )
</script> </script>
<SettingsPanel {#if $selectedComponent}
title={$selectedComponent._instanceName} <SettingsPanel
icon={componentDefinition.icon} title={$selectedComponent._instanceName}
> icon={componentDefinition.icon}
<ComponentSettingsSection >
{componentInstance} <ComponentSettingsSection
{componentDefinition} {componentInstance}
{bindings} {componentDefinition}
{componentBindings} {bindings}
/> {componentBindings}
<DesignSection {componentInstance} {componentDefinition} {bindings} /> />
<CustomStylesSection {componentInstance} {componentDefinition} {bindings} /> <DesignSection {componentInstance} {componentDefinition} {bindings} />
<ConditionalUISection {componentInstance} {componentDefinition} {bindings} /> <CustomStylesSection {componentInstance} {componentDefinition} {bindings} />
</SettingsPanel> <ConditionalUISection
{componentInstance}
{componentDefinition}
{bindings}
/>
</SettingsPanel>
{/if}

View file

@ -14,6 +14,7 @@
import RoleSelect from "components/design/settings/controls/RoleSelect.svelte" import RoleSelect from "components/design/settings/controls/RoleSelect.svelte"
import { selectedScreen, store } from "builderStore" import { selectedScreen, store } from "builderStore"
import sanitizeUrl from "builderStore/store/screenTemplates/utils/sanitizeUrl" import sanitizeUrl from "builderStore/store/screenTemplates/utils/sanitizeUrl"
import { goto } from "@roxi/routify"
let errors = {} let errors = {}
@ -138,6 +139,6 @@
props={{ ...setting.props, error: errors[setting.key] }} props={{ ...setting.props, error: errors[setting.key] }}
/> />
{/each} {/each}
<Button cta>View components</Button> <Button cta on:click={() => $goto("../components")}>View components</Button>
</Layout> </Layout>
</SettingsPanel> </SettingsPanel>