move mandatory CW button above edit controls in note menu
This commit is contained in:
parent
1413be08a0
commit
62ec2ff34e
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue