fix(dashboard): fix group icons in list
This commit is contained in:
parent
7327db535a
commit
0064857437
@ -121,14 +121,12 @@
|
|||||||
<CardsHeader {item} sortBy={options.sort}>
|
<CardsHeader {item} sortBy={options.sort}>
|
||||||
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
||||||
{#if item.privacy && item.privacy.visibility === "private"}
|
{#if item.privacy && item.privacy.visibility === "private"}
|
||||||
{#if pageOptions.type === "member"}
|
<FaLock />
|
||||||
|
{:else if pageOptions.type === "member"}
|
||||||
<FaLock />
|
<FaLock />
|
||||||
{:else if pageOptions.type === "group"}
|
{:else if pageOptions.type === "group"}
|
||||||
<FaUsers />
|
<FaUsers />
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
|
||||||
<FaUserCircle />
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</CardsHeader>
|
</CardsHeader>
|
||||||
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
||||||
@ -154,14 +152,12 @@
|
|||||||
<CardsHeader {item} sortBy={options.sort}>
|
<CardsHeader {item} sortBy={options.sort}>
|
||||||
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown|stopPropagation={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown|stopPropagation={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
||||||
{#if item.privacy && item.privacy.visibility === "private"}
|
{#if item.privacy && item.privacy.visibility === "private"}
|
||||||
{#if pageOptions.type === "member"}
|
|
||||||
<FaLock />
|
<FaLock />
|
||||||
|
{:else if pageOptions.type === "member"}
|
||||||
|
<FaUserCircle/>
|
||||||
{:else if pageOptions.type === "group"}
|
{:else if pageOptions.type === "group"}
|
||||||
<FaUsers />
|
<FaUsers />
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
|
||||||
<FaUserCircle />
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</CardsHeader>
|
</CardsHeader>
|
||||||
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
||||||
@ -184,14 +180,12 @@
|
|||||||
<CardsHeader {item} sortBy={options.sort}>
|
<CardsHeader {item} sortBy={options.sort}>
|
||||||
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown|stopPropagation={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
<div slot="icon" style="cursor: pointer;" id={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`} on:click|stopPropagation={() => copyShortLink(indexStart + index, item.id)} on:keydown|stopPropagation={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} >
|
||||||
{#if item.privacy && item.privacy.visibility === "private"}
|
{#if item.privacy && item.privacy.visibility === "private"}
|
||||||
{#if pageOptions.type === "member"}
|
|
||||||
<FaLock />
|
<FaLock />
|
||||||
|
{:else if pageOptions.type === "member"}
|
||||||
|
<FaUserCircle/>
|
||||||
{:else if pageOptions.type === "group"}
|
{:else if pageOptions.type === "group"}
|
||||||
<FaUsers />
|
<FaUsers />
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
|
||||||
<FaUserCircle />
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</CardsHeader>
|
</CardsHeader>
|
||||||
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
<Tooltip placement="top" target={`${pageOptions.type}-copy-${item.id}-${indexStart + index}`}>{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}</Tooltip>
|
||||||
|
Loading…
Reference in New Issue
Block a user