From ccc91dcca502600c4f7057ed5909c801bb820e37 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 5 Jan 2024 17:22:37 +0000 Subject: [PATCH 1/4] Enable layouts in multistep form blocks --- .../app/blocks/MultiStepFormblock.svelte | 41 +++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte index 0573ba15b5..b90d0d4c7b 100644 --- a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte +++ b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte @@ -14,6 +14,7 @@ const { fetchDatasourceSchema } = getContext("sdk") const component = getContext("component") + const context = getContext("context") // Set current step context to force child form to use it const currentStep = writable(1) @@ -157,18 +158,23 @@ - - {#each step.fields as field, fieldIdx (`${field.field || field.name}_${stepIdx}_${fieldIdx}`)} - {#if getComponentForField(field)} - - {/if} - {/each} + +
+ {#each step.fields as field, fieldIdx (`${field.field || field.name}_${stepIdx}_${fieldIdx}`)} + {#if getComponentForField(field)} + + {/if} + {/each} +
+ + From 7ca748a3be474e3f90e7b4c1eb25017f8897a6eb Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 5 Jan 2024 18:10:23 +0000 Subject: [PATCH 2/4] Remove objects from setUser call. We can add them later if we need them. --- packages/backend-core/src/middleware/authenticated.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/backend-core/src/middleware/authenticated.ts b/packages/backend-core/src/middleware/authenticated.ts index e8e16589de..d357dbdbdc 100644 --- a/packages/backend-core/src/middleware/authenticated.ts +++ b/packages/backend-core/src/middleware/authenticated.ts @@ -172,11 +172,8 @@ export default function ( tracer.setUser({ id: user?._id, tenantId: user?.tenantId, - admin: user?.admin, - builder: user?.builder, budibaseAccess: user?.budibaseAccess, status: user?.status, - roles: user?.roles, }) } From e24cf34c2fba0aeaa505e1e6205125625824a7f0 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 8 Jan 2024 11:43:22 +0000 Subject: [PATCH 3/4] Updating account portal reference to latest master.g --- packages/account-portal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/account-portal b/packages/account-portal index b11e6b4737..a97fb83d49 160000 --- a/packages/account-portal +++ b/packages/account-portal @@ -1 +1 @@ -Subproject commit b11e6b47370d9b77c63648b45929c86bfed6360c +Subproject commit a97fb83d4992f28c855c1cc5186bbdf4d1eba929 From 6546f776de1f182e6364a2ec2e4d1ef7097bdbcd Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 8 Jan 2024 11:59:45 +0000 Subject: [PATCH 4/4] Updating ref after linting. --- packages/account-portal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/account-portal b/packages/account-portal index a97fb83d49..8ee2734e77 160000 --- a/packages/account-portal +++ b/packages/account-portal @@ -1 +1 @@ -Subproject commit a97fb83d4992f28c855c1cc5186bbdf4d1eba929 +Subproject commit 8ee2734e77709438cbcaaabc024f677c7b24c883