mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
fix 非ログイン時に n または p キー押下で投稿フォームが出る (#6508)
* fix #5851 * post-formのスポーンを弾く場所を変更
This commit is contained in:
parent
35f997c56e
commit
98439a117b
1 changed files with 1 additions and 0 deletions
|
@ -195,6 +195,7 @@ os.init(async () => {
|
|||
return p;
|
||||
},
|
||||
post(opts, cb) {
|
||||
if (!this.$store.getters.isSignedIn) return;
|
||||
const vm = this.new(PostFormDialog, opts);
|
||||
if (cb) vm.$once('closed', cb);
|
||||
(vm as any).focus();
|
||||
|
|
Loading…
Reference in a new issue