chore(breadcrumb): address requested changes

This commit is contained in:
Elian Doran 2025-12-16 17:14:43 +02:00
parent 7e07280eb3
commit 8c008e2e3a
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View File

@ -313,11 +313,11 @@ function buildContextMenu(notePath: string, parentComponent: Component | null) {
const note = await branch?.getNote();
if (!note) return;
const notSearch = note?.type !== "search";
const notOptionsOrHelp = !note?.noteId.startsWith("_options") && !note?.noteId.startsWith("_help");
const notSearch = note.type !== "search";
const notOptionsOrHelp = !note.noteId.startsWith("_options") && !note.noteId.startsWith("_help");
const isArchived = note.isArchived;
const isNotRoot = note?.noteId !== "root";
const isHoisted = note?.noteId === appContext.tabManager.getActiveContext()?.hoistedNoteId;
const isNotRoot = note.noteId !== "root";
const isHoisted = note.noteId === appContext.tabManager.getActiveContext()?.hoistedNoteId;
const parentNote = isNotRoot && branch ? await froca.getNote(branch.parentNoteId) : null;
const parentNotSearch = !parentNote || parentNote.type !== "search";
@ -396,7 +396,7 @@ function buildContextMenu(notePath: string, parentComponent: Component | null) {
x: e.pageX,
y: e.pageY,
selectMenuItemHandler: ({ command }) => {
if (link_context_menu.handleLinkContextMenuItem(command, e, note.noteId)) {
if (link_context_menu.handleLinkContextMenuItem(command, e, notePath)) {
return;
}