From 2aca93ecf6a8c29d2a6dc2b5ccb30b455a5d01aa Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 14 Sep 2020 11:12:44 +0100 Subject: [PATCH 1/5] Event Modal - set padding to zero --- packages/builder/package.json | 2 +- .../userInterface/EventsEditor/EventPropertyControl.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 599baf4536..e8ac78617f 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -63,7 +63,7 @@ } }, "dependencies": { - "@budibase/bbui": "^1.32.0", + "@budibase/bbui": "^1.32.2", "@budibase/client": "^0.1.19", "@budibase/colorpicker": "^1.0.1", "@sentry/browser": "5.19.1", diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte index c27d1aaa3d..52986b0efd 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte @@ -12,7 +12,7 @@ - + Date: Mon, 14 Sep 2020 12:32:10 +0100 Subject: [PATCH 2/5] fix: re-exposing store in component api, as form depends on it --- packages/client/src/state/bbComponentApi.js | 1 + packages/client/src/state/store.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/client/src/state/bbComponentApi.js b/packages/client/src/state/bbComponentApi.js index d055d4a05b..99503bb2b9 100644 --- a/packages/client/src/state/bbComponentApi.js +++ b/packages/client/src/state/bbComponentApi.js @@ -47,6 +47,7 @@ export const bbFactory = ({ setBinding: setBindableComponentProp(treeNode), api, parent, + store: store.getStore(treeNode.contextStoreKey), // these parameters are populated by screenRouter routeParams: () => store.getState()["##routeParams"], } diff --git a/packages/client/src/state/store.js b/packages/client/src/state/store.js index 5b1ac54375..7895700cd0 100644 --- a/packages/client/src/state/store.js +++ b/packages/client/src/state/store.js @@ -94,6 +94,9 @@ const set = (value, dataProviderId, childIndex) => const getState = contextStoreKey => contextStoreKey ? contextStores[contextStoreKey].state : rootState +const getStore = contextStoreKey => + contextStoreKey ? contextStores[contextStoreKey] : rootStore + export default { subscribe, update, @@ -101,4 +104,5 @@ export default { getState, create, contextStoreKey, + getStore, } From ade5527bd7f48e06dc6c83492675da778cee38c5 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 14 Sep 2020 12:32:44 +0100 Subject: [PATCH 3/5] NavigateTo action: use DataList, so URLs are configurable --- .../userInterface/EventsEditor/actions/NavigateTo.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte index f3ab468ccc..659fb954eb 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte @@ -1,5 +1,5 @@