Skip to content

Commit 4a8f995

Browse files
committed
refac
1 parent 7ea1e9c commit 4a8f995

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/components/workspace/common/AddAccessModal.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
bind:groupIds
5858
includeGroups={true}
5959
includeUsers={shareUsers}
60+
includeSessionUser={true}
6061
/>
6162
</div>
6263

src/lib/components/workspace/common/MemberSelector.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
export let includeGroups = true;
2222
export let includeUsers = true;
2323
export let pagination = false;
24+
export let includeSessionUser = false;
2425
2526
export let groupIds = [];
2627
export let userIds = [];
@@ -245,7 +246,7 @@
245246

246247
<div>
247248
{#each users as user, userIdx (user.id)}
248-
{#if user?.id !== $_user?.id}
249+
{#if includeSessionUser || user?.id !== $_user?.id}
249250
<button
250251
class=" dark:border-gray-850 text-xs flex items-center justify-between w-full"
251252
type="button"

0 commit comments

Comments
 (0)