diff --git a/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte index 88c57daa21..5e9850b290 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte @@ -1,17 +1,91 @@ - - Import - - - - + + + + Import + + + + Import rows to an existing table from a CSV or JSON file. Only columns from + the file which exist in the table will be imported. + + + + + +
+ +
+
diff --git a/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte b/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte deleted file mode 100644 index 1696c6ba03..0000000000 --- a/packages/builder/src/components/backend/DataTable/modals/ImportModal.svelte +++ /dev/null @@ -1,61 +0,0 @@ - - - - - Import rows to an existing table from a CSV or JSON file. Only columns from - the file which exist in the table will be imported. - - - - - - diff --git a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte index 5804dc3172..7743762877 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte @@ -1,5 +1,5 @@ -
- - -
-{#if rawRows.length > 0 && !error} -
- {#each Object.entries(schema) as [name, column]} -
- {column.name} - +
-
+ + {#if rawRows.length > 0 && !error} +
+ {#each Object.entries(schema) as [name, column]} +
+ {column.name} + -
-{/if} + {/if} +