This commit is contained in:
NoriDev 2023-11-16 17:17:49 +09:00
parent 867e567825
commit 98af3f59d7

View file

@ -411,17 +411,6 @@ export function getNoteMenu(props: {
window.open(appearNote.url ?? appearNote.uri, '_blank'); window.open(appearNote.url ?? appearNote.uri, '_blank');
}, },
} : undefined } : undefined
, (appearNote.userId === $i.id) ? null : undefined
, (appearNote.userId === $i.id) ? {
icon: 'ti ti-edit',
text: i18n.ts.copyAndEdit,
action: copyEdit,
} : undefined
, appearNote.userId === $i.id ? {
icon: 'ti ti-edit',
text: i18n.ts.deleteAndEdit,
action: delEdit,
} : undefined
, null , null
, { , {
icon: 'ti ti-code', icon: 'ti ti-code',
@ -436,7 +425,18 @@ export function getNoteMenu(props: {
icon: 'ti ti-paw-off', icon: 'ti ti-paw-off',
text: i18n.ts.noNyaization, text: i18n.ts.noNyaization,
action: noNyaizeText, action: noNyaizeText,
}], }
, (appearNote.userId === $i.id) ? null : undefined
, (appearNote.userId === $i.id) ? {
icon: 'ti ti-edit',
text: i18n.ts.copyAndEdit,
action: copyEdit,
} : undefined
, appearNote.userId === $i.id ? {
icon: 'ti ti-edit',
text: i18n.ts.deleteAndEdit,
action: delEdit,
} : undefined],
}, },
{ {
type: 'parent' as const, type: 'parent' as const,