enhance(frontend/MkPostForm): ノートの投稿後すぐに投稿モーダルを閉じるように (MisskeyIO#605)
This commit is contained in:
parent
5e476a76ca
commit
8b214f8247
2 changed files with 11 additions and 2 deletions
|
@ -162,7 +162,9 @@ const props = withDefaults(defineProps<{
|
|||
provide('mock', props.mock);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(ev: 'posting'): void;
|
||||
(ev: 'posted'): void;
|
||||
(ev: 'postError'): void;
|
||||
(ev: 'cancel'): void;
|
||||
(ev: 'esc'): void;
|
||||
|
||||
|
@ -861,7 +863,9 @@ async function post(ev?: MouseEvent) {
|
|||
type: 'error',
|
||||
text: err.message + '\n' + (err as any).id,
|
||||
});
|
||||
emit("postError");
|
||||
});
|
||||
emit("posting");
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue