From 9e29b3305577ef7d0a66d88637160b44494c9b82 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Jan 2021 10:57:57 +0000 Subject: [PATCH 1/2] Fix settings to select fields and fix chart settings not showing fields --- packages/builder/src/builderStore/dataBinding.js | 2 +- .../PropertyControls/TableViewFieldSelect.svelte | 2 +- packages/standard-components/manifest.json | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index 004c7170d3..022e78c637 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -46,7 +46,7 @@ export const getDatasourceForProvider = component => { // Extract datasource from component instance const datasourceSetting = def.settings.find(setting => { - return setting.key === def.datasourceSetting + return setting.type === "datasource" || setting.type === "table" }) if (!datasourceSetting) { return null diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewFieldSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewFieldSelect.svelte index 0e93c3e73a..32935d8d0a 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewFieldSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/TableViewFieldSelect.svelte @@ -12,7 +12,7 @@ export let multiselect = false $: datasource = getDatasourceForProvider(componentInstance) - $: schema = getSchemaForDatasource(datasource) + $: schema = getSchemaForDatasource(datasource).schema $: options = Object.keys(schema || {}) diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index 901ea0df3c..65352761b9 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -106,7 +106,6 @@ "styleable": true, "hasChildren": true, "dataProvider": true, - "datasourceSetting": "datasource", "settings": [ { "type": "datasource", @@ -418,7 +417,6 @@ "styleable": true, "hasChildren": true, "dataProvider": true, - "datasourceSetting": "table", "settings": [ { "type": "table", @@ -434,7 +432,6 @@ "hasChildren": true, "styleable": true, "dataProvider": true, - "datasourceSetting": "table", "settings": [ { "type": "table", From 6663306ca3ce89d26e31ed14c767a5f19bd6c7fe Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Tue, 26 Jan 2021 11:00:08 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index f0fe339a02..2cc352607b 100644 --- a/README.md +++ b/README.md @@ -103,13 +103,9 @@ The Budibase builder runs in Electron, on Mac, PC and Linux. Follow the steps be ## 🤖 Self-hosting -

- -

- Budibase wants to make sure anyone can use the tools we develop and we know a lot of people need to be able to host the apps they make on their own systems - that is why we've decided to try and make self hosting as easy as possible! -Currently, you can host your apps using Docker. The documentation for self-hosting can be found [here](https://docs.budibase.com/self-hosting/introduction-to-self-hosting). +Currently, you can host your apps using Docker or Digital Ocean. The documentation for self-hosting can be found [here](https://docs.budibase.com/self-hosting/introduction-to-self-hosting). ## 🎓 Learning Budibase