From f63b6946ecc422c82684f2fdbcce313aad88a67f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 23 Dec 2020 08:54:09 +0000 Subject: [PATCH 1/4] Fix empty screen list when navigating between roles --- .../ComponentsPaneSwitcher.svelte | 82 ------------------- .../design/[assetType]/_layout.svelte | 10 ++- 2 files changed, 7 insertions(+), 85 deletions(-) delete mode 100644 packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte diff --git a/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte b/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte deleted file mode 100644 index beae2d7e3f..0000000000 --- a/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte +++ /dev/null @@ -1,82 +0,0 @@ - - -
- {#if $store.currentFrontEndType === FrontendTypes.LAYOUT || $allScreens.length} -
- - - -
- -
- {#if selected === PROPERTIES_TAB} - - {/if} - - {#if selected === COMPONENT_SELECTION_TAB} - - {/if} -
- {/if} -
- - diff --git a/packages/builder/src/pages/[application]/design/[assetType]/_layout.svelte b/packages/builder/src/pages/[application]/design/[assetType]/_layout.svelte index b797a18dc4..df013f2abe 100644 --- a/packages/builder/src/pages/[application]/design/[assetType]/_layout.svelte +++ b/packages/builder/src/pages/[application]/design/[assetType]/_layout.svelte @@ -1,7 +1,11 @@ -
- {#each properties as props} - onStyleChanged(styleCategory, key, value)} - props={{ ...excludeProps(props, ['control', 'label']) }} /> - {/each} -
+ {#if open} +
+ {#each properties as props} + onStyleChanged(styleCategory, key, value)} + props={{ ...excludeProps(props, ['control', 'label']) }} /> + {/each} +
+ {/if}