refac
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
bind:groupIds
|
bind:groupIds
|
||||||
includeGroups={true}
|
includeGroups={true}
|
||||||
includeUsers={shareUsers}
|
includeUsers={shareUsers}
|
||||||
|
includeSessionUser={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
export let includeGroups = true;
|
export let includeGroups = true;
|
||||||
export let includeUsers = true;
|
export let includeUsers = true;
|
||||||
export let pagination = false;
|
export let pagination = false;
|
||||||
|
export let includeSessionUser = false;
|
||||||
|
|
||||||
export let groupIds = [];
|
export let groupIds = [];
|
||||||
export let userIds = [];
|
export let userIds = [];
|
||||||
@@ -245,7 +246,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
{#each users as user, userIdx (user.id)}
|
{#each users as user, userIdx (user.id)}
|
||||||
{#if user?.id !== $_user?.id}
|
{#if includeSessionUser || user?.id !== $_user?.id}
|
||||||
<button
|
<button
|
||||||
class=" dark:border-gray-850 text-xs flex items-center justify-between w-full"
|
class=" dark:border-gray-850 text-xs flex items-center justify-between w-full"
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user