From 68a7052c358ba3677db52ad5d6c8a2cdaa3b1166 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Wed, 1 Jul 2026 09:29:52 +0200 Subject: [PATCH] show "loading" while loading parent candidates Signed-off-by: Stephan Richter --- frontend/src/routes/task/ParentSelector.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/routes/task/ParentSelector.svelte b/frontend/src/routes/task/ParentSelector.svelte index def709ba..4ff55ef4 100644 --- a/frontend/src/routes/task/ParentSelector.svelte +++ b/frontend/src/routes/task/ParentSelector.svelte @@ -7,6 +7,7 @@ let { project, select = o => {}, task } = $props(); let tree = $state({}); + let loading = $state(true); async function loadParentCandidates(){ let url = api(`task/${task.id}/parent_candidates`); @@ -14,6 +15,7 @@ if (res.ok){ yikes(); tree = await res.json(); + loading = false; } else error(res); } @@ -26,5 +28,11 @@ {t('project')}: {project.name} + {#if loading} +

+ {t('loading')} +

+ {:else} + {/if} \ No newline at end of file