From 9e8110b7bc4fc6ca67a992443cd307baf07ff03f Mon Sep 17 00:00:00 2001 From: Kaity A Date: Sun, 7 May 2023 22:07:40 +1000 Subject: [PATCH] Fix up PR issues --- .../client/src/components/MkRenoteButton.vue | 2 +- packages/client/src/scripts/get-note-menu.ts | 36 ++++++------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/packages/client/src/components/MkRenoteButton.vue b/packages/client/src/components/MkRenoteButton.vue index e0f45ecfed..476e467270 100644 --- a/packages/client/src/components/MkRenoteButton.vue +++ b/packages/client/src/components/MkRenoteButton.vue @@ -88,7 +88,7 @@ const renote = async (viaKeyboard = false, ev?: MouseEvent) => { if ( props.note.visibility === "public" || - props.note.visibil ity === "hidden" + props.note.visibility === "hidden" ) { buttonActions.push({ text: i18n.ts.renote, diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 09281e9e65..d36eff609f 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -61,35 +61,21 @@ export function getNoteMenu(props: { } function edit(): void { - os.confirm({ - type: "info", - text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.", - }).then(({ canceled }) => { - if (canceled) return; - - os.post({ - initialNote: appearNote, - renote: appearNote.renote, - reply: appearNote.reply, - channel: appearNote.channel, - editId: appearNote.id, - }); + os.post({ + initialNote: appearNote, + renote: appearNote.renote, + reply: appearNote.reply, + channel: appearNote.channel, + editId: appearNote.id, }); } function duplicate(): void { - os.confirm({ - type: "info", - text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.", - }).then(({ canceled }) => { - if (canceled) return; - - os.post({ - initialNote: appearNote, - renote: appearNote.renote, - reply: appearNote.reply, - channel: appearNote.channel, - }); + os.post({ + initialNote: appearNote, + renote: appearNote.renote, + reply: appearNote.reply, + channel: appearNote.channel, }); }