Don't show delegate and private repo labels in repo view

According to the designs we shouldn't show these labels there.
This commit is contained in:
Rūdolfs Ošiņš
2024-10-31 16:10:26 +01:00
parent f2a6bad1d7
commit 793c3bd600
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -6,6 +6,7 @@
export let repo: RepoInfo;
export let selfDid: string;
export let emphasizedTitle: boolean = true;
export let showLabels: boolean = true;
$: project = repo.payloads["xyz.radicle.project"]!;
</script>
@@ -42,7 +43,7 @@
{/if}
</div>
<div class="global-flex">
{#if repo.visibility.type === "private"}
{#if showLabels && repo.visibility.type === "private"}
<div
class="global-counter"
style:padding="0"
@@ -52,7 +53,7 @@
</div>
</div>
{/if}
{#if repo.delegates.find(x => x.did === selfDid)}
{#if showLabels && repo.delegates.find(x => x.did === selfDid)}
<div
class="global-counter"
style:padding="0"
+1
View File
@@ -73,6 +73,7 @@
styleHeight="32px">
<RepoHeader
{repo}
showLabels={false}
selfDid={`did:key:${config.publicKey}`}
emphasizedTitle={false} />
</Border>
+1
View File
@@ -82,6 +82,7 @@
styleHeight="32px">
<RepoHeader
{repo}
showLabels={false}
selfDid={`did:key:${config.publicKey}`}
emphasizedTitle={false} />
</Border>