From bfa095e2efc918f6468a259666769a7cade02cb7 Mon Sep 17 00:00:00 2001 From: yupix Date: Wed, 25 Oct 2023 03:53:07 +0000 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E3=83=81=E3=83=A3=E3=83=B3?= =?UTF-8?q?=E3=83=8D=E3=83=AB=E4=BD=9C=E6=88=90=E3=80=81=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=99=82=E3=81=ABapiWithDialog=E3=82=92=E4=BD=BF=E3=81=86?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + packages/frontend/src/pages/channel-editor.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f875b4b704f..d4ad9673c39c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - 外部サイトでの実装が必要です。詳細は Misskey Hub をご覧ください https://misskey-hub.net/docs/advanced/publish-on-your-website.html - Fix: 投稿フォームでのユーザー変更がプレビューに反映されない問題を修正 +- Fix: チャンネルの作成・更新時に失敗した場合何も表示されない問題を修正 #11983 ### Server - Enhance: RedisへのTLのキャッシュをオフにできるように diff --git a/packages/frontend/src/pages/channel-editor.vue b/packages/frontend/src/pages/channel-editor.vue index 39ce093cf236..850573abca56 100644 --- a/packages/frontend/src/pages/channel-editor.vue +++ b/packages/frontend/src/pages/channel-editor.vue @@ -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}`); }); From dea154a1c354a113e7e242bc30689d324c729231 Mon Sep 17 00:00:00 2001 From: yupix Date: Fri, 27 Oct 2023 12:47:59 +0000 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E4=B8=8D=E8=A6=81=E3=81=AAsuccess?= =?UTF-8?q?=E3=81=AE=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=97=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/channel-editor.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/frontend/src/pages/channel-editor.vue b/packages/frontend/src/pages/channel-editor.vue index 850573abca56..614bd1ae3991 100644 --- a/packages/frontend/src/pages/channel-editor.vue +++ b/packages/frontend/src/pages/channel-editor.vue @@ -154,14 +154,9 @@ function save() { if (props.channelId) { params.channelId = props.channelId; - os.apiWithDialog('channels/update', params).then(() => { - os.success(); - }); + os.apiWithDialog('channels/update', params); } else { - os.apiWithDialog('channels/create', params).then(created => { - os.success(); - router.push(`/channels/${created.id}`); - }); + os.apiWithDialog('channels/create', params); } } From f1cb7a0fe347d0548189da39ca6437174c5b5cc6 Mon Sep 17 00:00:00 2001 From: yupix Date: Sat, 28 Oct 2023 07:21:40 +0000 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E8=AA=A4=E3=81=A3=E3=81=A6?= =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=97=E3=81=9F=E5=BF=85=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E5=85=83=E9=80=9A=E3=82=8A?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/channel-editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/channel-editor.vue b/packages/frontend/src/pages/channel-editor.vue index 614bd1ae3991..faef8fdb1f4d 100644 --- a/packages/frontend/src/pages/channel-editor.vue +++ b/packages/frontend/src/pages/channel-editor.vue @@ -156,7 +156,9 @@ function save() { params.channelId = props.channelId; os.apiWithDialog('channels/update', params); } else { - os.apiWithDialog('channels/create', params); + os.apiWithDialog('channels/create', params).then(created => { + router.push(`/channels/${created.id}`); + }); } }