change note menu order
This commit is contained in:
parent
bf78733da4
commit
91190244fb
|
@ -262,13 +262,6 @@ export function getNoteMenu(props: {
|
||||||
null,
|
null,
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
instance.features.postEditing && isAppearAuthor
|
|
||||||
? {
|
|
||||||
icon: "ph-pencil-line ph-bold ph-lg",
|
|
||||||
text: i18n.ts.edit,
|
|
||||||
action: edit,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
{
|
{
|
||||||
icon: "ph-clipboard-text ph-bold ph-lg",
|
icon: "ph-clipboard-text ph-bold ph-lg",
|
||||||
text: i18n.ts.copyContent,
|
text: i18n.ts.copyContent,
|
||||||
|
@ -372,33 +365,44 @@ export function getNoteMenu(props: {
|
||||||
}]
|
}]
|
||||||
: []
|
: []
|
||||||
),*/
|
),*/
|
||||||
...(!isAppearAuthor
|
null,
|
||||||
? [
|
!isAppearAuthor
|
||||||
null,
|
? {
|
||||||
{
|
icon: "ph-warning-circle ph-bold ph-lg",
|
||||||
icon: "ph-warning-circle ph-bold ph-lg",
|
text: i18n.ts.reportAbuse,
|
||||||
text: i18n.ts.reportAbuse,
|
action: () => {
|
||||||
action: () => {
|
const u =
|
||||||
const u =
|
appearNote.url ||
|
||||||
appearNote.url ||
|
appearNote.uri ||
|
||||||
appearNote.uri ||
|
`${url}/notes/${appearNote.id}`;
|
||||||
`${url}/notes/${appearNote.id}`;
|
os.popup(
|
||||||
os.popup(
|
defineAsyncComponent(
|
||||||
defineAsyncComponent(
|
() => import("@/components/MkAbuseReportWindow.vue"),
|
||||||
() => import("@/components/MkAbuseReportWindow.vue"),
|
),
|
||||||
),
|
{
|
||||||
{
|
user: appearNote.user,
|
||||||
user: appearNote.user,
|
initialComment: `Note: ${u}\n-----\n`,
|
||||||
initialComment: `Note: ${u}\n-----\n`,
|
},
|
||||||
},
|
{},
|
||||||
{},
|
"closed",
|
||||||
"closed",
|
);
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]
|
}
|
||||||
: []),
|
: undefined,
|
||||||
|
instance.features.postEditing && isAppearAuthor
|
||||||
|
? {
|
||||||
|
icon: "ph-pencil-line ph-bold ph-lg",
|
||||||
|
text: i18n.ts.edit,
|
||||||
|
action: edit,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
isAppearAuthor
|
||||||
|
? {
|
||||||
|
icon: "ph-eraser ph-bold ph-lg",
|
||||||
|
text: i18n.ts.deleteAndEdit,
|
||||||
|
action: delEdit,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
isAppearAuthor || isModerator
|
isAppearAuthor || isModerator
|
||||||
? {
|
? {
|
||||||
icon: "ph-trash ph-bold ph-lg",
|
icon: "ph-trash ph-bold ph-lg",
|
||||||
|
@ -407,14 +411,6 @@ export function getNoteMenu(props: {
|
||||||
action: del,
|
action: del,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
||||||
isAppearAuthor
|
|
||||||
? {
|
|
||||||
icon: "ph-eraser ph-bold ph-lg",
|
|
||||||
text: i18n.ts.deleteAndEdit,
|
|
||||||
action: delEdit,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
].filter((x) => x !== undefined);
|
].filter((x) => x !== undefined);
|
||||||
} else {
|
} else {
|
||||||
menu = [
|
menu = [
|
||||||
|
|
Loading…
Reference in New Issue