From 0a42bce2c001e901c1961bce18d5702bff24dc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 7 May 2021 09:47:05 +0200 Subject: [PATCH] adds users store and moves some components --- .../oauth/{logos => _logos}/Google.svelte | 0 .../pages/portal/manage/oauth/index.svelte | 2 +- .../users/_components/AddUserModal.svelte | 22 +++++++++++++ .../pages/portal/manage/users/index.svelte | 29 +++++++++++++++-- packages/builder/src/stores/portal/index.js | 1 + packages/builder/src/stores/portal/users.js | 32 +++++++++++++++++++ 6 files changed, 82 insertions(+), 4 deletions(-) rename packages/builder/src/pages/portal/manage/oauth/{logos => _logos}/Google.svelte (100%) create mode 100644 packages/builder/src/pages/portal/manage/users/_components/AddUserModal.svelte create mode 100644 packages/builder/src/stores/portal/users.js diff --git a/packages/builder/src/pages/portal/manage/oauth/logos/Google.svelte b/packages/builder/src/pages/portal/manage/oauth/_logos/Google.svelte similarity index 100% rename from packages/builder/src/pages/portal/manage/oauth/logos/Google.svelte rename to packages/builder/src/pages/portal/manage/oauth/_logos/Google.svelte diff --git a/packages/builder/src/pages/portal/manage/oauth/index.svelte b/packages/builder/src/pages/portal/manage/oauth/index.svelte index 45c9761d38..f9d2c49cfd 100644 --- a/packages/builder/src/pages/portal/manage/oauth/index.svelte +++ b/packages/builder/src/pages/portal/manage/oauth/index.svelte @@ -1,5 +1,5 @@ + + + If you have SMTP configured and an email for the new user, you can use the + automated email onboarding flow. Otherwise, use our basic onboarding process + with autogenerated passwords. + + diff --git a/packages/builder/src/pages/portal/manage/users/index.svelte b/packages/builder/src/pages/portal/manage/users/index.svelte index a968d78003..4d67dabc0c 100644 --- a/packages/builder/src/pages/portal/manage/users/index.svelte +++ b/packages/builder/src/pages/portal/manage/users/index.svelte @@ -9,7 +9,22 @@ Table, Label, Layout, + Modal, + ModalContent, } from "@budibase/bbui" + import AddUserModal from "./_components/AddUserModal.svelte" + import { users } from "stores/portal" + + users.init() + + const schema = { + email: {}, + status: {}, + // access: {}, + // group: {} + } + + export let modal @@ -31,14 +46,22 @@
- - + +
- +
+ +