diff --git a/next-app/src/lib/forms/Button.svelte b/next-app/src/lib/forms/Button.svelte index dea5340800..787e40c0d5 100644 --- a/next-app/src/lib/forms/Button.svelte +++ b/next-app/src/lib/forms/Button.svelte @@ -1,12 +1,13 @@ - + diff --git a/next-app/src/routes/projects/[project_code]/+page.svelte b/next-app/src/routes/projects/[project_code]/+page.svelte index 727578f34a..00eb8d52e4 100644 --- a/next-app/src/routes/projects/[project_code]/+page.svelte +++ b/next-app/src/routes/projects/[project_code]/+page.svelte @@ -17,6 +17,7 @@ export let data: DashboardData let only_showing_subset = true + let loading = false; $: project = data.project $: activities = data.activities @@ -53,8 +54,9 @@ ].filter(({ value }) => value !== undefined) async function load_all_activities() { + loading = true activities = await GET({url: `/projects/${$page.params.project_code}/activities`}) - + loading = false only_showing_subset = false } @@ -80,8 +82,8 @@ {#if only_showing_subset} -