summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkPostForm.vue
diff options
context:
space:
mode:
authortaichan <40626578+taichanNE30@users.noreply.github.com>2023-09-28 15:35:00 +0900
committerGitHub <noreply@github.com>2023-09-28 15:35:00 +0900
commit63c6a9bb80f8e8eb9f783adc15e03ed498b52d1a (patch)
tree5a52c4f432854cb2e7b930331cc0b54aef4befd1 /packages/frontend/src/components/MkPostForm.vue
parentenhance: タイムラインからRenoteを除外するオプションを追加 (diff)
downloadmisskey-63c6a9bb80f8e8eb9f783adc15e03ed498b52d1a.tar.gz
misskey-63c6a9bb80f8e8eb9f783adc15e03ed498b52d1a.tar.bz2
misskey-63c6a9bb80f8e8eb9f783adc15e03ed498b52d1a.zip
Feat: register_post_form_actionでcwを変更可能にする (#11911)
* 投稿フォームのアクション追加するプラグインでCWを変更可能にする * Update CHANGELOG
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
-rw-r--r--packages/frontend/src/components/MkPostForm.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue
index 2b4dcc8ed4..1f4f75d5ed 100644
--- a/packages/frontend/src/components/MkPostForm.vue
+++ b/packages/frontend/src/components/MkPostForm.vue
@@ -819,8 +819,10 @@ function showActions(ev) {
action: () => {
action.handler({
text: text,
+ cw: cw,
}, (key, value) => {
if (key === 'text') { text = value; }
+ if (key === 'cw') { useCw = value !== null; cw = value; }
});
},
})), ev.currentTarget ?? ev.target);