Add Loader to project view

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-08-24 08:40:06 +02:00
committed by Alexis Sellier
parent d49130163d
commit e675e91638
+4 -1
View File
@@ -2,6 +2,7 @@
import type { Config } from '@app/config';
import * as proj from '@app/project';
import Placeholder from '@app/Placeholder.svelte';
import Loading from '@app/Loading.svelte';
import { formatProfile, formatSeedId, setOpenGraphMetaTag } from '@app/utils';
import { browserStore } from '@app/project';
import { fetchCommits } from '@app/commit';
@@ -64,7 +65,9 @@
<ProjectMeta noDescription={content !== proj.ProjectContent.Tree} {project} {peer} />
{#if revision}
{#await project.getRoot(revision) then { tree, commit }}
{#await project.getRoot(revision)}
<Loading center />
{:then { tree, commit }}
<Header {tree} {commit} {browserStore} {project} noAnchor />
{#if content == proj.ProjectContent.Tree}