Skip to content

Commit

Permalink
feat: チャンネルの作成・更新時にapiWithDialogを使うように (misskey-dev#12142)
Browse files Browse the repository at this point in the history
* feat: チャンネル作成、更新時にapiWithDialogを使うように

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

* chore: 誤って削除した必要なコードを元通りに
  • Loading branch information
yupix authored and kanarikanaru committed Nov 2, 2023
1 parent 8cdc1ae commit 7a0f244
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/frontend/src/pages/channel-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
}
Expand Down

0 comments on commit 7a0f244

Please sign in to comment.