diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte index b60f15d976..9504f73b68 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte @@ -5,6 +5,8 @@ Select, ModalContent, notifications, + Toggle, + Label, } from "@budibase/bbui" import { createValidationStore, emailValidator } from "helpers/validation" import { users } from "stores/portal" @@ -13,12 +15,12 @@ const options = ["Email onboarding", "Basic onboarding"] let selected = options[0] + let builder, admin const [email, error, touched] = createValidationStore("", emailValidator) async function createUserFlow() { - const res = await users.invite($email) - console.log(res) + const res = await users.invite({ email: $email, builder, admin }) if (res.status) { notifications.error(res.message) } else { @@ -56,4 +58,23 @@ placeholder="john@doe.com" label="Email" /> +
+
+ + +
+
+ + +
+
+ + diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte index 74a696191a..8ecb274585 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte @@ -1,13 +1,22 @@