From 398f5c8d09dd5203ffc40ed4b2adf4bc8df45d4c Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 11 Oct 2021 16:02:55 +0200 Subject: [PATCH] Get anchors work in user projects Signed-off-by: Alexis Sellier --- src/base/projects/Browser.svelte | 12 +++++++----- src/base/projects/View.svelte | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/base/projects/Browser.svelte b/src/base/projects/Browser.svelte index 7fbdfa938..1bbccf13c 100644 --- a/src/base/projects/Browser.svelte +++ b/src/base/projects/Browser.svelte @@ -26,9 +26,10 @@ export let commit: string; export let config: Config; export let path: string; - export let org: Profile | null = null; + export let profile: Profile | null = null; + export let org: string | null = null; - const orgAddress = org?.address; + const orgAddress = org ?? undefined; // When the component is loaded the first time, the blob is yet to be loaded. let state: State = { status: Status.Idle }; @@ -108,6 +109,7 @@ border-radius: 0.25rem; color: var(--color-tertiary); background-color: var(--color-tertiary-background); + cursor: help; } .anchor-widget.not-anchored { color: var(--color-foreground-faded); @@ -251,7 +253,7 @@ {:then anchor} {#if anchor === commit} - anchored 🔒 + anchored 🔒 {:else} @@ -279,8 +281,8 @@ {#if config.seed.id} - {:else if org} - + {:else if profile} + {/if} diff --git a/src/base/projects/View.svelte b/src/base/projects/View.svelte index 66da99d65..aeb77a848 100644 --- a/src/base/projects/View.svelte +++ b/src/base/projects/View.svelte @@ -116,7 +116,7 @@
{urn}
{result.project.meta.description}
- {:catch}