Skip to content
Snippets Groups Projects
Unverified Commit 5887c5da authored by yupix's avatar yupix Committed by GitHub
Browse files

feat: チャンネルの作成・更新時にapiWithDialogを使うように (#12142)

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

* chore: 不要なsuccessの呼び出しを削除

* chore: 誤って削除した必要なコードを元通りに
parent 9ec667a8
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@
- Fix: ユーザーページの ノート > ファイル付き タブにリプライが表示されてしまう
- Fix: 「検索」MFMにおいて一部の検索キーワードが正しく認識されない問題を修正
- Fix: 一部の言語でMisskey Webがクラッシュする問題を修正
- Fix: チャンネルの作成・更新時に失敗した場合何も表示されない問題を修正 #11983
### Server
- Enhance: RedisへのTLのキャッシュをオフにできるように
......
......@@ -154,12 +154,9 @@ function save() {
if (props.channelId) {
params.channelId = props.channelId;
os.api('channels/update', params).then(() => {
os.success();
});
os.apiWithDialog('channels/update', params);
} else {
os.api('channels/create', params).then(created => {
os.success();
os.apiWithDialog('channels/create', params).then(created => {
router.push(`/channels/${created.id}`);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment