From 51398bb0dd260698af4f4ca33f03d216c6e18f33 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Fri, 10 Jan 2025 14:51:21 -0500 Subject: [PATCH] Make new entries appear in navigation list We use `{dontNavigate: true}` so that the search bar won't be changed. --- frontend/viewer/src/ProjectView.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/viewer/src/ProjectView.svelte b/frontend/viewer/src/ProjectView.svelte index af05d74b9..6df0d62b5 100644 --- a/frontend/viewer/src/ProjectView.svelte +++ b/frontend/viewer/src/ProjectView.svelte @@ -217,6 +217,8 @@ $entries?.push(entry);//need to add it before refresh, otherwise it won't get selected because it's not in the list if (!options?.dontNavigate) { navigateToEntry(entry, headword(entry)); + } else { + refreshEntries(); } } @@ -336,7 +338,7 @@
{#if !readonly} - + onEntryCreated(e.detail.entry, {dontNavigate: true})} /> {/if} {#if $features.history}