move mandatory CW button above edit controls in note menu

This commit is contained in:
Hazelnoot 2025-07-09 19:05:30 -04:00
parent 1413be08a0
commit 62ec2ff34e

View file

@ -503,6 +503,9 @@ export function getNoteMenu(props: {
if (appearNote.userId === $i.id || $i.isModerator || $i.isAdmin) {
menuItems.push({ type: 'divider' });
if ($i.isModerator || $i.isAdmin) {
menuItems.push(getMandatoryCWMenu(appearNote));
}
if (appearNote.userId === $i.id) {
menuItems.push({
icon: 'ph-pencil-simple ph-bold ph-lg',
@ -516,9 +519,6 @@ export function getNoteMenu(props: {
action: delEdit,
});
}
if ($i.isModerator || $i.isAdmin) {
menuItems.push(getMandatoryCWMenu(appearNote));
}
menuItems.push({
icon: 'ti ti-trash',
text: i18n.ts.delete,