mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Add error clause when fetching org members or orgs
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
import Projects from './View/Projects.svelte';
|
||||
import Link from '@app/Link.svelte';
|
||||
import SeedAddress from '@app/SeedAddress.svelte';
|
||||
import Message from '@app/Message.svelte';
|
||||
|
||||
export let addressOrName: string;
|
||||
export let config: Config;
|
||||
@@ -96,6 +97,7 @@
|
||||
display: grid;
|
||||
grid-template-columns: 5rem 4fr 2fr;
|
||||
grid-gap: 1rem 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.fields > div {
|
||||
justify-self: start;
|
||||
@@ -323,6 +325,10 @@
|
||||
{/await}
|
||||
</div>
|
||||
{/if}
|
||||
{:catch err}
|
||||
<Message error>
|
||||
<strong>Error: </strong> failed to load org members: {err.message}.
|
||||
</Message>
|
||||
{/await}
|
||||
|
||||
<Projects {org} config={profile.seed ? config.withSeed(profile.seed) : config} />
|
||||
|
||||
@@ -220,6 +220,10 @@
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{:catch err}
|
||||
<Message error>
|
||||
<strong>Error: </strong> failed to load orgs: {err.message}.
|
||||
</Message>
|
||||
{/await}
|
||||
<div class="projects">
|
||||
{#if profile.anchorsAccount}
|
||||
|
||||
Reference in New Issue
Block a user