diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index 1710a27dd3..26cca761a8 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -13,7 +13,7 @@ import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/u
import ws from "../../services/ws";
import ActionButton from "../react/ActionButton";
import Dropdown from "../react/Dropdown";
-import { FormDropdownDivider, FormDropdownSubmenu, FormListItem, FormListToggleableItem } from "../react/FormList";
+import { FormDropdownDivider, FormDropdownSubmenu, FormListHeader, FormListItem, FormListToggleableItem } from "../react/FormList";
import { useIsNoteReadOnly, useNoteContext, useNoteLabel, useNoteLabelBoolean, useNoteProperty, useTriliumOption } from "../react/hooks";
import { ParentComponent } from "../react/react_utils";
import { isExperimentalFeatureEnabled } from "../../services/experimental_features";
@@ -76,18 +76,17 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
>}
- {canBeConvertedToAttachment && }
- {note.type === "render" && }
-
- {isElectron && }
+
+ {isNewLayout && }
+
{isNewLayout && isNormalViewMode && !isHelpPage && <>
>}
-
+
parentComponent?.triggerCommand("showImportDialog", { noteId: note.noteId })} />
@@ -97,30 +96,37 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
notePath: noteContext.notePath,
defaultType: "single"
})} />
-
-
-
-
-
- {(syncServerHost && isElectron) &&
-
- }
+ {isElectron && }
+
+
+
+
+
+ {canBeConvertedToAttachment && }
+ {note.type === "render" && }
+
+
+
+
+
+ {(syncServerHost && isElectron) &&
+
+ }
+
+ {glob.isDev && }
+
+
+
+
branches.deleteNotes([note.getParentBranches()[0].branchId])}
/>
-
-
-
- {isNewLayout && }
- {glob.isDev && <>
-
-
- >}
);
}
@@ -132,19 +138,6 @@ function NoteBasicProperties({ note }: { note: FNote }) {
const isProtected = useNoteProperty(note, "isProtected");
return <>
-
-
-
protected_session.protectNote(note.noteId, shouldProtect, false)}
/>
+
+
+
+
+
+
>;
}
@@ -200,7 +209,8 @@ function NoteTypeDropdown({ note }: { note: FNote }) {
function DevelopmentActions({ note, noteContext }: { note: FNote, noteContext?: NoteContext }) {
return (
-
+ <>
+
window.open(`/?print=#root/${note.noteId}`, "_blank")}
@@ -215,7 +225,7 @@ function DevelopmentActions({ note, noteContext }: { note: FNote, noteContext?:
});
});
}}>Crash editor
-
+ >
);
}