remove duplicate
This commit is contained in:
parent
b669986060
commit
001f8038bf
1 changed files with 7 additions and 27 deletions
|
@ -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 {
|
||||
os.apiWithDialog(
|
||||
favorite ? "notes/favorites/create" : "notes/favorites/delete",
|
||||
|
@ -284,6 +275,13 @@ export function getNoteMenu(props: {
|
|||
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",
|
||||
text: i18n.ts.reaction,
|
||||
|
@ -421,24 +419,6 @@ export function getNoteMenu(props: {
|
|||
|
||||
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
|
||||
? {
|
||||
icon: "ph-trash ph-bold ph-lg",
|
||||
|
|
Loading…
Reference in a new issue