From 5fe8b523bf8804a9a885317fc46127012a1d24d4 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 25 Jun 2020 14:25:17 +0200 Subject: [PATCH] adds functionality to check list of users and add users in settings modal --- .../src/components/settings/UserRow.svelte | 22 ++++ .../src/components/settings/tabs/Users.svelte | 116 +++++++++++++----- 2 files changed, 109 insertions(+), 29 deletions(-) create mode 100644 packages/builder/src/components/settings/UserRow.svelte diff --git a/packages/builder/src/components/settings/UserRow.svelte b/packages/builder/src/components/settings/UserRow.svelte new file mode 100644 index 0000000000..8e70df0bbf --- /dev/null +++ b/packages/builder/src/components/settings/UserRow.svelte @@ -0,0 +1,22 @@ + + +
+ + + +
+ + diff --git a/packages/builder/src/components/settings/tabs/Users.svelte b/packages/builder/src/components/settings/tabs/Users.svelte index 2bc175a6b1..3be9a38cd7 100644 --- a/packages/builder/src/components/settings/tabs/Users.svelte +++ b/packages/builder/src/components/settings/tabs/Users.svelte @@ -1,64 +1,122 @@ Users
-
+
Create new user
- - -
- - + +
- +
+
+
Current Users
+ {#await fetchUsersPromise} + Loading state! + {:then users} +
    + {#each users as user} +
  • + +
  • + {:else} +
  • No Users found
  • + {/each} +
+ {:catch error} + err0r + {/await} +