From c5c6f57fedb9632a1646381463eb6b02b741ec99 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Apr 2022 14:40:29 +0100 Subject: [PATCH] Update title in component settings panel and fix issue when components are not selected --- .../settings/ComponentSettingsPanel.svelte | 19 +++++++++++-------- .../settings/ComponentSettingsSection.svelte | 3 ++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsPanel.svelte index f1fc0d5a3b..60ddf44be6 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsPanel.svelte @@ -1,6 +1,6 @@ {#if $selectedComponent} - + diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte index d1ba42a656..2e04401b0a 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/[componentId]/_components/settings/ComponentSettingsSection.svelte @@ -14,6 +14,7 @@ export let assetInstance export let bindings export let componentBindings + export let isScreen = false const layoutDefinition = [] const screenDefinition = [ @@ -90,7 +91,7 @@ {#each sections as section, idx (section.name)} - {#if idx === 0 && !componentInstance._component.endsWith("/layout")} + {#if idx === 0 && !componentInstance._component.endsWith("/layout") && !isScreen}