remove duplicate
This commit is contained in:
parent
b669986060
commit
001f8038bf
|
@ -70,15 +70,6 @@ export function getNoteMenu(props: {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function duplicate(): void {
|
|
||||||
os.post({
|
|
||||||
initialNote: appearNote,
|
|
||||||
renote: appearNote.renote,
|
|
||||||
reply: appearNote.reply,
|
|
||||||
channel: appearNote.channel,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleFavorite(favorite: boolean): void {
|
function toggleFavorite(favorite: boolean): void {
|
||||||
os.apiWithDialog(
|
os.apiWithDialog(
|
||||||
favorite ? "notes/favorites/create" : "notes/favorites/delete",
|
favorite ? "notes/favorites/create" : "notes/favorites/delete",
|
||||||
|
@ -284,6 +275,13 @@ 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-smiley ph-bold ph-lg",
|
icon: "ph-smiley ph-bold ph-lg",
|
||||||
text: i18n.ts.reaction,
|
text: i18n.ts.reaction,
|
||||||
|
@ -421,24 +419,6 @@ export function getNoteMenu(props: {
|
||||||
|
|
||||||
null,
|
null,
|
||||||
|
|
||||||
instance.features.postEditing && isAppearAuthor
|
|
||||||
? {
|
|
||||||
icon: "ph-pencil-line ph-bold ph-lg",
|
|
||||||
text: i18n.ts.edit,
|
|
||||||
textStyle: "color: var(--accent)",
|
|
||||||
action: edit,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
|
|
||||||
instance.features.postEditing
|
|
||||||
? {
|
|
||||||
icon: "ph-copy ph-bold ph-lg",
|
|
||||||
text: i18n.ts.duplicate,
|
|
||||||
textStyle: "color: var(--accent)",
|
|
||||||
action: duplicate,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
|
|
||||||
isAppearAuthor || isModerator
|
isAppearAuthor || isModerator
|
||||||
? {
|
? {
|
||||||
icon: "ph-trash ph-bold ph-lg",
|
icon: "ph-trash ph-bold ph-lg",
|
||||||
|
|
Loading…
Reference in New Issue