From c88596b69e44d4a688bd6dcf158acd1f07d58584 Mon Sep 17 00:00:00 2001 From: yukineko <27853966+hideki0403@users.noreply.github.com> Date: Wed, 20 Mar 2024 02:27:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8A=95=E7=A8=BF=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=A0=E3=82=92=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=82=8B=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 4 ++++ locales/ja-JP.yml | 1 + packages/frontend/src/components/MkPostForm.vue | 3 +++ packages/frontend/src/scripts/post-form.ts | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index d30ea6efb3f9..d8b58acd7445 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5292,6 +5292,10 @@ export interface Locale extends ILocale { * 投稿フォームの下部に表示される項目の並び替えが出来ます。項目をクリックすると削除できます。 */ "postFormBottomSettingsDescription": string; + /** + * 投稿フォームをリセット + */ + "clearPost": string; "_bubbleGame": { /** * 遊び方 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8927888ea93a..1e28e681bd08 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1319,6 +1319,7 @@ hideActivityDescription: "自分のプロフィールのアクティビティ ( channelAnnouncementDescription: "このお知らせはチャンネルのタイムライン上部に表示されます。最初の1行がタイトルとして表示され、2行目以降はお知らせをタップすることで表示されるようになります。" postForm: "投稿フォーム" postFormBottomSettingsDescription: "投稿フォームの下部に表示される項目の並び替えが出来ます。項目をクリックすると削除できます。" +clearPost: "投稿フォームをリセット" _bubbleGame: howToPlay: "遊び方" diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 086b867b58f0..6cb108b3e368 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -298,6 +298,9 @@ const bottomItemActionDef: Record !showAddMfmFunction.value), action: insertMfmFunction, }, + clearPost: { + action: clear, + }, }); watch(text, () => { diff --git a/packages/frontend/src/scripts/post-form.ts b/packages/frontend/src/scripts/post-form.ts index c0cff1f4e073..1d998aca65a7 100644 --- a/packages/frontend/src/scripts/post-form.ts +++ b/packages/frontend/src/scripts/post-form.ts @@ -37,4 +37,8 @@ export const bottomItemDef = { title: i18n.ts.addMfmFunction, icon: 'ti-palette', }, + clearPost: { + title: i18n.ts.clearPost, + icon: 'ti-trash', + }, };