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

This commit is contained in:
1STEP621 2023-12-14 16:16:21 +09:00 committed by GitHub
parent 8416329f40
commit 0c0b7d77b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ export function getNoteMenu(props: {
} }
if (noteActions.length > 0) { if (noteActions.length > 0) {
menu = menu.concat([null, ...noteActions.map(action => ({ menu = menu.concat([{ type: "divider" }, ...noteActions.map(action => ({
icon: 'ti ti-plug', icon: 'ti ti-plug',
text: action.title, text: action.title,
action: () => { action: () => {
@ -399,7 +399,7 @@ export function getNoteMenu(props: {
} }
if (defaultStore.state.devMode) { if (defaultStore.state.devMode) {
menu = menu.concat([null, { menu = menu.concat([{ type: "divider" }, {
icon: 'ti ti-id', icon: 'ti ti-id',
text: i18n.ts.copyNoteId, text: i18n.ts.copyNoteId,
action: () => { action: () => {