Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make new entries appear in navigation list #1367

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/viewer/src/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down Expand Up @@ -336,7 +338,7 @@
<div class="max-sm:hidden flex-grow"></div>
<div slot="actions" class="flex items-center gap-2 lg-view:gap-4 whitespace-nowrap">
{#if !readonly}
<NewEntryDialog bind:this={newEntryDialog} />
<NewEntryDialog bind:this={newEntryDialog} on:created={(e) => onEntryCreated(e.detail.entry, {dontNavigate: true})} />
{/if}
{#if $features.history}
<ActivityView {projectName}/>
Expand Down
Loading