summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/get-note-menu.ts
diff options
context:
space:
mode:
author1STEP621 <86859447+1STEP621@users.noreply.github.com>2023-12-14 16:16:21 +0900
committerGitHub <noreply@github.com>2023-12-14 16:16:21 +0900
commit0c0b7d77b35720abb9252194dbe0de1516389922 (patch)
tree97d7f60b8364d0fa9f4179a8e43057ed880300d9 /packages/frontend/src/scripts/get-note-menu.ts
parentNew Crowdin updates (#12352) (diff)
downloadsharkey-0c0b7d77b35720abb9252194dbe0de1516389922.tar.gz
sharkey-0c0b7d77b35720abb9252194dbe0de1516389922.tar.bz2
sharkey-0c0b7d77b35720abb9252194dbe0de1516389922.zip
fix: contextmenu does not appear when plugin enabled / devMode enabled (#12656)
Diffstat (limited to 'packages/frontend/src/scripts/get-note-menu.ts')
-rw-r--r--packages/frontend/src/scripts/get-note-menu.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts
index 1f6cfffce1..50d76167fe 100644
--- a/packages/frontend/src/scripts/get-note-menu.ts
+++ b/packages/frontend/src/scripts/get-note-menu.ts
@@ -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: () => {