diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index fbfcb8a020..3b77e2a43f 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -285,7 +285,7 @@
{#if showEditColumn}
{#if allowSelectRows} @@ -301,7 +301,7 @@ {#each fields as field}
{#if showEditColumn}
{ toggleSelectRow(row) @@ -482,12 +482,17 @@ border-right: var(--table-border); } - .noBorder { + .noBorderHeader { border-top: none !important; border-right: none !important; border-left: none !important; } + .noBorderCheckbox { + border-top: none !important; + border-right: none !important; + } + .spectrum-Table-headCell--alignCenter { justify-content: center; } diff --git a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte index 21169c6513..833d89e9b5 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte @@ -139,7 +139,7 @@
- {#if group?.users.length} + {#if group?.users?.length} {#each group.users as user}
diff --git a/packages/builder/src/pages/builder/portal/manage/groups/_components/UserGroupsRow.svelte b/packages/builder/src/pages/builder/portal/manage/groups/_components/UserGroupsRow.svelte index a720750d46..5988601a2a 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/_components/UserGroupsRow.svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/_components/UserGroupsRow.svelte @@ -57,7 +57,7 @@ >Manage
-
+
diff --git a/packages/builder/src/pages/builder/portal/manage/groups/index.svelte b/packages/builder/src/pages/builder/portal/manage/groups/index.svelte index 4bb0df7a2e..43680d0c2a 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/index.svelte @@ -16,7 +16,12 @@ import UserGroupsRow from "./_components/UserGroupsRow.svelte" let modal - let group = {} + let group = { + name: "", + icon: "", + color: "", + users: [], + } let proPlan = true async function deleteGroup(group) { @@ -38,6 +43,7 @@ onMount(async () => { try { await groups.actions.init() + console.log($groups) } catch (error) { notifications.error("Error getting User groups") } diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AppsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AppsTableRenderer.svelte index b007972a39..5611b20e99 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/AppsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AppsTableRenderer.svelte @@ -5,7 +5,7 @@
- +
{#if value?.apps?.length === 0}
diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte index 57bd834803..885277a6eb 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte @@ -1,20 +1,21 @@
- {#if value?.groups?.length === 0} -
-
No groups
+ {#if value.length === 0} +
0
+ {:else if value.length === 1} +
+ {value[0].name}
- {:else if value?.groups?.length === 1} - {value.groups[0]?.name} {:else} - {parseInt(value?.groups?.length) || 0} + {parseInt(value.length) || 0} groups {/if}
@@ -23,6 +24,10 @@ display: flex; } + .opacity { + opacity: 0.7; + } + .spacing { margin-right: var(--spacing-m); } diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/RoleTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/RoleTableRenderer.svelte new file mode 100644 index 0000000000..571a5d1a34 --- /dev/null +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/RoleTableRenderer.svelte @@ -0,0 +1,19 @@ + + +
+