diff --git a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte index 72a0cd3f4e..ebb01bd336 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte @@ -19,7 +19,8 @@ import { fetchData } from "helpers" import { users, auth } from "stores/portal" - import TagsRenderer from "./_components/TagsTableRenderer.svelte" + import TagsRenderer from "./_components/RolesTagsTableRenderer.svelte" + import UpdateRolesModal from "./_components/UpdateRolesModal.svelte" import ForceResetPasswordModal from "./_components/ForceResetPasswordModal.svelte" diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/RolesTagsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/RolesTagsTableRenderer.svelte new file mode 100644 index 0000000000..7e63045edd --- /dev/null +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/RolesTagsTableRenderer.svelte @@ -0,0 +1,8 @@ + + + diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte index 564abca211..d2b56bbf33 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte @@ -4,9 +4,9 @@ const displayLimit = 5 - $: roles = value?.filter(role => role != null).map(role => role.name) ?? [] - $: tags = roles.slice(0, displayLimit) - $: leftover = roles.length - tags.length + $: values = value?.filter(value => value != null) ?? [] + $: tags = values.slice(0, displayLimit) + $: leftover = values.length - tags.length