selectIntegration(integrationType)}
class="item hoverable"
>
-
+
-
-
- {schema.name || IntegrationNames[integrationType]}
+
+ {schema.friendlyName}
+ {#if schema.type}
+ {schema.type || ""}
+ {/if}
+
{/each}
@@ -178,13 +177,6 @@
diff --git a/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte b/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte
index 1cb3856165..bd9b6a1741 100644
--- a/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte
+++ b/packages/builder/src/components/design/NavigationPanel/DatasourceModal.svelte
@@ -14,14 +14,14 @@
let selectedScreens = [...initalScreens]
const toggleScreenSelection = (table, datasource) => {
- if (selectedScreens.find(s => s.table === table.name)) {
+ if (selectedScreens.find(s => s.table === table._id)) {
selectedScreens = selectedScreens.filter(
- screen => screen.table !== table.name
+ screen => screen.table !== table._id
)
} else {
let partialTemplates = getTemplates($store, $tables.list).reduce(
(acc, template) => {
- if (template.table === table.name) {
+ if (template.table === table._id) {
template.datasource = datasource.name
acc.push(template)
}
@@ -88,7 +88,7 @@
x.table === table.name
+ x => x.table === table._id
)}
on:click={() => toggleScreenSelection(table, datasource)}
>
@@ -102,8 +102,7 @@
{table.name}
-
- {#if selectedScreens.find(x => x.table === table.name)}
+ {#if selectedScreens.find(x => x.table === table._id)}
@@ -116,7 +115,7 @@
x.table === datasource.entities[table_key].name
+ x => x.table === datasource.entities[table_key]._id
)}
on:click={() =>
toggleScreenSelection(
@@ -134,8 +133,7 @@
{datasource.entities[table_key].name}
-
- {#if selectedScreens.find(x => x.table === datasource.entities[table_key].name)}
+ {#if selectedScreens.find(x => x.table === datasource.entities[table_key]._id)}
diff --git a/packages/builder/src/components/design/NavigationPanel/ScreenWizard.svelte b/packages/builder/src/components/design/NavigationPanel/ScreenWizard.svelte
index 0a3c9611bc..5f36034b93 100644
--- a/packages/builder/src/components/design/NavigationPanel/ScreenWizard.svelte
+++ b/packages/builder/src/components/design/NavigationPanel/ScreenWizard.svelte
@@ -66,7 +66,7 @@
// Add link in layout for list screens
if (screen.props._instanceName.endsWith("List")) {
- await store.actions.components.links.save(
+ await store.actions.links.save(
screen.routing.route,
screen.routing.route.split("/")[1]
)
@@ -131,6 +131,7 @@
const screens = selectedTemplates.map(template => {
let screenTemplate = template.create()
screenTemplate.datasource = template.datasource
+ screenTemplate.autoTableId = template.table
return screenTemplate
})
await createScreens({ screens, screenAccessRole })
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExportData.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExportData.svelte
index 062b9abd4c..aa3bf2a36b 100644
--- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExportData.svelte
+++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/ExportData.svelte
@@ -1,27 +1,18 @@