Skip to content
Snippets Groups Projects
Unverified Commit 0c0b7d77 authored by 1STEP621's avatar 1STEP621 Committed by GitHub
Browse files

fix: contextmenu does not appear when plugin enabled / devMode enabled (#12656)

parent 8416329f
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,7 @@ export function getNoteMenu(props: {
}
if (noteActions.length > 0) {
menu = menu.concat([null, ...noteActions.map(action => ({
menu = menu.concat([{ type: "divider" }, ...noteActions.map(action => ({
icon: 'ti ti-plug',
text: action.title,
action: () => {
......@@ -399,7 +399,7 @@ export function getNoteMenu(props: {
}
if (defaultStore.state.devMode) {
menu = menu.concat([null, {
menu = menu.concat([{ type: "divider" }, {
icon: 'ti ti-id',
text: i18n.ts.copyNoteId,
action: () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment