From 0064857437601f5e53c49ea4cac2dfd557f10378 Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Mon, 28 Nov 2022 17:08:20 +0100 Subject: [PATCH] fix(dashboard): fix group icons in list --- dashboard/src/components/list/ListView.svelte | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/dashboard/src/components/list/ListView.svelte b/dashboard/src/components/list/ListView.svelte index f2945274..815d4905 100644 --- a/dashboard/src/components/list/ListView.svelte +++ b/dashboard/src/components/list/ListView.svelte @@ -121,14 +121,12 @@
copyShortLink(indexStart + index, item.id)} on:keydown={(e) => copyShortLink(indexStart + index, item.id, e)} tabindex={0} > {#if item.privacy && item.privacy.visibility === "private"} - {#if pageOptions.type === "member"} + + {:else if pageOptions.type === "member"} {:else if pageOptions.type === "group"} {/if} - {:else} - - {/if}
{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"} @@ -154,14 +152,12 @@
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 pageOptions.type === "member"} + {:else if pageOptions.type === "member"} + {:else if pageOptions.type === "group"} {/if} - {:else} - - {/if}
{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"} @@ -184,14 +180,12 @@
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 pageOptions.type === "member"} + {:else if pageOptions.type === "member"} + {:else if pageOptions.type === "group"} {/if} - {:else} - - {/if}
{copiedArray[indexStart + index] ? "Copied!" : "Copy public link"}