From 51c11cb537eee0c1e409f9a15f4a0f9e7cd9fe86 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Oct 2020 12:57:35 +0100 Subject: [PATCH] Reduce unecessary div layers --- .../CreateAutomationModal.svelte | 0 .../TableNavigator/TableNavigator.svelte | 61 ++++++++----------- .../pages/[application]/data/_layout.svelte | 5 ++ 3 files changed, 31 insertions(+), 35 deletions(-) rename packages/builder/src/components/automation/AutomationPanel/{AutomationList => }/CreateAutomationModal.svelte (100%) diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationList/CreateAutomationModal.svelte b/packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte similarity index 100% rename from packages/builder/src/components/automation/AutomationPanel/AutomationList/CreateAutomationModal.svelte rename to packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte diff --git a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte index e521a1dfc6..0b73074e10 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte @@ -33,49 +33,40 @@ } -
- {#if $backendUiStore.selectedDatabase && $backendUiStore.selectedDatabase._id} -
-

Tables

- -
-
- {#each $backendUiStore.tables as table} +{#if $backendUiStore.selectedDatabase && $backendUiStore.selectedDatabase._id} +
+

Tables

+ +
+
+ {#each $backendUiStore.tables as table, idx} + 0} + icon="ri-table-line" + text={table.name} + selected={selectedView === `all_${table._id}`} + on:click={() => selectTable(table)}> + + + {#each Object.keys(table.views || {}) as viewName} selectTable(table)}> - + indentLevel={1} + icon="ri-eye-line" + text={viewName} + selected={selectedView === viewName} + on:click={() => onClickView(table, viewName)}> + - {#each Object.keys(table.views || {}) as viewName} - onClickView(table, viewName)}> - - - {/each} {/each} -
- {/if} -
+ {/each} +
+{/if}