Skip to content

Commit

Permalink
Feat: register_post_form_actionでcwを変更可能にする (#11911)
Browse files Browse the repository at this point in the history
* 投稿フォームのアクション追加するプラグインでCWを変更可能にする

* Update CHANGELOG
  • Loading branch information
tai-cha authored Sep 28, 2023
1 parent 772d243 commit 63c6a9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

### Client
- Enhance: モデレーションログ機能の強化
- Plugin:register_post_form_actionを用いてCWを取得・変更できるように

### Server
- Enhance: MasterプロセスのPIDを書き出せるように
Expand Down
2 changes: 2 additions & 0 deletions packages/frontend/src/components/MkPostForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63c6a9b

Please sign in to comment.