mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 08:40:52 +08:00
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:
@@ -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"
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
styleHeight="32px">
|
||||
<RepoHeader
|
||||
{repo}
|
||||
showLabels={false}
|
||||
selfDid={`did:key:${config.publicKey}`}
|
||||
emphasizedTitle={false} />
|
||||
</Border>
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
styleHeight="32px">
|
||||
<RepoHeader
|
||||
{repo}
|
||||
showLabels={false}
|
||||
selfDid={`did:key:${config.publicKey}`}
|
||||
emphasizedTitle={false} />
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user