feat: チャンネル作成、更新時にapiWithDialogを使うように

This commit is contained in:
yupix 2023-10-25 03:53:07 +00:00
parent 4dd4a11cef
commit bfa095e2ef
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@
- 外部サイトでの実装が必要です。詳細は Misskey Hub をご覧ください
https://misskey-hub.net/docs/advanced/publish-on-your-website.html
- Fix: 投稿フォームでのユーザー変更がプレビューに反映されない問題を修正
- Fix: チャンネルの作成・更新時に失敗した場合何も表示されない問題を修正 #11983
### Server
- Enhance: RedisへのTLのキャッシュをオフにできるように

View File

@ -154,11 +154,11 @@ function save() {
if (props.channelId) {
params.channelId = props.channelId;
os.api('channels/update', params).then(() => {
os.apiWithDialog('channels/update', params).then(() => {
os.success();
});
} else {
os.api('channels/create', params).then(created => {
os.apiWithDialog('channels/create', params).then(created => {
os.success();
router.push(`/channels/${created.id}`);
});