1
0
forked from mirror/misskey

fix 非ログイン時に n または p キー押下で投稿フォームが出る (#6508)

* fix #5851

* post-formのスポーンを弾く場所を変更
This commit is contained in:
Xeltica 2020-07-07 15:50:47 +09:00 committed by GitHub
parent 48c94907c2
commit b6a4061097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,7 @@ os.init(async () => {
return p; return p;
}, },
post(opts, cb) { post(opts, cb) {
if (!this.$store.getters.isSignedIn) return;
const vm = this.new(PostFormDialog, opts); const vm = this.new(PostFormDialog, opts);
if (cb) vm.$once('closed', cb); if (cb) vm.$once('closed', cb);
(vm as any).focus(); (vm as any).focus();